Skip to content

Commit

Permalink
chore: minor update nuxt config
Browse files Browse the repository at this point in the history
  • Loading branch information
Cedric-ruiu committed Sep 17, 2024
1 parent 7fe9fc5 commit e190e68
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: ['@nuxt/content', '@unocss/nuxt'],

app: {
head: {
htmlAttrs: {
lang: 'fr',
},
},
},

runtimeConfig: {
emailContact: '', // use NUXT_EMAIL_CONTACT environment variable
},

vite: {
css: {
preprocessorOptions: {
Expand All @@ -23,11 +26,13 @@ export default defineNuxtConfig({
},
},
},

css: [
// The entry file loaded on all pages
'@unocss/reset/tailwind.css',
'@/assets/main.scss',
],

nitro: {
prerender: {
routes: [
Expand All @@ -37,7 +42,10 @@ export default defineNuxtConfig({
],
},
},

experimental: {
payloadExtraction: false, // Fix 404 payload on SSG https://github.com/nuxt/nuxt/issues/22068
},
})

compatibilityDate: '2024-09-17',
})

0 comments on commit e190e68

Please sign in to comment.