mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-24 18:26:17 +03:00
fix: disable nuxt-security
in dev
This commit is contained in:
parent
21b277ffce
commit
3050350f25
1 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,7 @@ export default defineNuxtConfig({
|
|||
'@vue-macros/nuxt',
|
||||
'@nuxtjs/i18n',
|
||||
'@nuxtjs/color-mode',
|
||||
...!isDevelopment || !isWindows ? ['nuxt-security'] : [],
|
||||
...(isDevelopment || isWindows) ? [] : ['nuxt-security'],
|
||||
'~/modules/purge-comments',
|
||||
'~/modules/setup-components',
|
||||
'~/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: {
|
||||
headers: {
|
||||
crossOriginEmbedderPolicy: false,
|
||||
|
|
Loading…
Reference in a new issue