config ssr
This commit is contained in:
parent
4dd0dd5030
commit
5334e2b58a
@ -1,6 +1,19 @@
|
|||||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
// nuxt.config.ts
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
compatibilityDate: '2025-05-15',
|
compatibilityDate: '2025-05-15',
|
||||||
devtools: { enabled: true },
|
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
|
||||||
|
}
|
||||||
})
|
})
|
||||||
Loading…
x
Reference in New Issue
Block a user