Skip to content

Fix FOUC in Dev SSR

Compare
Choose a tag to compare
@Julien-R44 Julien-R44 released this 03 Mar 16:24

If you've had the opportunity to try SSR, you probably have noticed the huge FOUC in Dev when SSR was activated. This release fixes that. Read the PR to check out more about the implementation details

For this to work, you will need to specify the client-side entrypoint of your application. We have automatic detection for conventional locations, but if you've ever placed your entrypoint in another location or with another funky name, then make sure you pass it in your config/inertia.ts file.

// config/inertia.ts
import app from '@adonisjs/core/services/app'

defineConfig({
  entrypoint: app.makePath('resources/my-client-entry-point.ts')
})

What's Changed

Full Changelog: v1.0.0-12...v1.0.0-13