Damien
Damien
NNuxt
Created by Damien on 7/24/2024 in #❓・help
Nuxt Content for Static Site Generation
With documentDriven: true, same error in production : Document not found, overwrite this content with #not-found slot in <ContentDoc>.
14 replies
NNuxt
Created by Damien on 7/24/2024 in #❓・help
Nuxt Content for Static Site Generation
You can enable client-side only rendering with Nuxt in your nuxt.config.ts:
export default defineNuxtConfig({
ssr: false
})
export default defineNuxtConfig({
ssr: false
})
14 replies
NNuxt
Created by Damien on 7/24/2024 in #❓・help
Nuxt Content for Static Site Generation
14 replies
NNuxt
Created by Damien on 7/24/2024 in #❓・help
Nuxt Content for Static Site Generation
What ? "Server side rendering" need to be disabled for static site.
14 replies
NNuxt
Created by Damien on 7/24/2024 in #❓・help
Nuxt Content for Static Site Generation
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
modules: ["vuetify-nuxt-module", "@nuxt/content", "@nuxt/image"],
css: [
"~/layouts/global.css",
],
ssr: false,
spaLoadingTemplate: false
})
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
compatibilityDate: '2024-04-03',
devtools: { enabled: true },
modules: ["vuetify-nuxt-module", "@nuxt/content", "@nuxt/image"],
css: [
"~/layouts/global.css",
],
ssr: false,
spaLoadingTemplate: false
})
Command is : npm run generate
14 replies
NNuxt
Created by Damien on 7/24/2024 in #❓・help
Nuxt Content for Static Site Generation
Yes, of course. But if i want a static site, i can't use content ?
14 replies