config ssr

This commit is contained in:
Sabrina Hennrich 2025-07-11 12:53:37 +02:00
parent 4dd0dd5030
commit 5334e2b58a

View File

@ -1,6 +1,19 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
// nuxt.config.ts
export default defineNuxtConfig({
compatibilityDate: '2025-05-15',
devtools: { enabled: true },
modules: ['@nuxt/eslint', '@nuxt/image']
})
modules: ['@nuxt/eslint', '@nuxt/image'],
// WICHTIG für SSG:
nitro: {
preset: 'vercel' // Optional, optimiert Build für Vercel
},
ssr: true, // Standard: SSR enabled (für SSG ok)
target: 'static', // Früher relevant, heute optional, sorgt für statische Generierung
// Optional: Export-Optionen für generate
generate: {
// routes: [...] // Falls du manuell zusätzliche Routen definieren willst
}
})