Enable SSR for Authentik header reading
All checks were successful
build-and-deploy / build (push) Successful in 54s
build-and-deploy / deploy (push) Successful in 3s

- Changed ssr: false to ssr: true in nuxt.config.ts
- This is critical for useAuthentik() to read headers during server-side rendering
- Without SSR, the composable cannot access Authentik proxy headers
- User authentication state will now be properly initialized on page load
This commit is contained in:
2025-10-13 12:11:25 -06:00
parent 6e739250a0
commit d5d364af4b

View File

@@ -2,7 +2,7 @@
import { disableImportProtection } from './nuxt.config.workaround' import { disableImportProtection } from './nuxt.config.workaround'
export default defineNuxtConfig({ export default defineNuxtConfig({
ssr: false, ssr: true,
compatibilityDate: '2025-07-15', compatibilityDate: '2025-07-15',
devtools: { enabled: true }, devtools: { enabled: true },
css: ['~/assets/css/main.css'], css: ['~/assets/css/main.css'],