fix: disable `nuxt-security` in dev
parent
21b277ffce
commit
3050350f25
|
@ -25,7 +25,7 @@ export default defineNuxtConfig({
|
||||||
'@vue-macros/nuxt',
|
'@vue-macros/nuxt',
|
||||||
'@nuxtjs/i18n',
|
'@nuxtjs/i18n',
|
||||||
'@nuxtjs/color-mode',
|
'@nuxtjs/color-mode',
|
||||||
...!isDevelopment || !isWindows ? ['nuxt-security'] : [],
|
...(isDevelopment || isWindows) ? [] : ['nuxt-security'],
|
||||||
'~/modules/purge-comments',
|
'~/modules/purge-comments',
|
||||||
'~/modules/setup-components',
|
'~/modules/setup-components',
|
||||||
'~/modules/build-env',
|
'~/modules/build-env',
|
||||||
|
@ -146,6 +146,8 @@ export default defineNuxtConfig({
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
// eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
|
||||||
|
// @ts-ignore nuxt-security is conditional
|
||||||
security: {
|
security: {
|
||||||
headers: {
|
headers: {
|
||||||
crossOriginEmbedderPolicy: false,
|
crossOriginEmbedderPolicy: false,
|
||||||
|
|
Loading…
Reference in New Issue