Enable SSR for Authentik header reading
- 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:
@@ -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'],
|
||||||
|
|||||||
Reference in New Issue
Block a user