Fix FOUC in Dev SSR
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
- feat: prevent FOUC with SSR in dev by @Julien-R44 in #5
Full Changelog: v1.0.0-12...v1.0.0-13