fix: disable `nuxt-security` on windows dev (pending nuxt 3.1.0)

zio/stable
Daniel Roe 2023-01-16 09:48:57 +00:00
parent e04972d5e2
commit 3b73d11fd3
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import { createResolver } from '@nuxt/kit'
import Inspect from 'vite-plugin-inspect'
import { isCI, isDevelopment } from 'std-env'
import { isCI, isDevelopment, isWindows } from 'std-env'
import { isPreview } from './config/env'
import { i18n } from './config/i18n'
import { pwa } from './config/pwa'
@ -25,7 +25,7 @@ export default defineNuxtConfig({
'@vue-macros/nuxt',
'@nuxtjs/i18n',
'@nuxtjs/color-mode',
'nuxt-security',
...!isDevelopment || !isWindows ? ['nuxt-security'] : [],
'~/modules/purge-comments',
'~/modules/setup-components',
'~/modules/build-env',