From 0cf7e65a2a00f34ba630923870d749fa94cf4a5b Mon Sep 17 00:00:00 2001 From: Joakim Olsson Date: Sun, 3 Nov 2024 16:29:50 +0100 Subject: [PATCH] chore(config): add compatibility date to nuxt configuration Adds a compatibility date for future reference. --- nuxt.config.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nuxt.config.js b/nuxt.config.js index d85c267..ba65eed 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -5,7 +5,9 @@ export default defineNuxtConfig({ build: { transpile: ['vuetify', 'date-fns'], }, + devtools: { enabled: true }, + i18n: { detectBrowserLanguage: { useCookie: true, @@ -23,6 +25,7 @@ export default defineNuxtConfig({ defaultLocale: 'sv', vueI18n: './i18n.config.ts', // if you are using custom path, default }, + modules: [ (_options, nuxt) => { nuxt.hooks.hook('vite:extendConfig', (config) => { @@ -42,13 +45,16 @@ export default defineNuxtConfig({ '@nuxt/devtools', '@sentry/nuxt/module', ], + piniaPersistedstate: { cookieOptions: { sameSite: 'strict', }, storage: 'localStorage', }, + ssr: false, + vite: { css: { preprocessorOptions: { @@ -66,4 +72,6 @@ export default defineNuxtConfig({ }, }, }, -}) + + compatibilityDate: '2024-11-03', +}) \ No newline at end of file