Skip to content

Commit 87225f4

Browse files
committed
chore: use nuxt-security
1 parent e61657e commit 87225f4

3 files changed

Lines changed: 74 additions & 4 deletions

File tree

nuxt.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import process from 'node:process'
22
import { currentLocales } from './config/i18n'
3-
import { isCI, isTest, provider } from 'std-env'
3+
import { isCI, isDevelopment, isWindows, isTest, provider } from 'std-env'
44

55
export default defineNuxtConfig({
66
modules: [
@@ -15,6 +15,7 @@ export default defineNuxtConfig({
1515
'@vueuse/nuxt',
1616
'@nuxtjs/i18n',
1717
'@nuxtjs/color-mode',
18+
...(isDevelopment || isWindows ? [] : ['nuxt-security']),
1819
],
1920

2021
$test: {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
"module-replacements": "2.11.0",
9292
"nuxt": "4.3.1",
9393
"nuxt-og-image": "5.1.13",
94+
"nuxt-security": "2.5.1",
9495
"ofetch": "1.5.1",
9596
"ohash": "2.0.11",
9697
"perfect-debounce": "2.1.0",

pnpm-lock.yaml

Lines changed: 71 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)