fix(stage-tamagotchi): mute the "request id is outside of Vite serving allow list" error
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { join, resolve } from 'node:path'
|
||||
|
||||
import VueI18n from '@intlify/unplugin-vue-i18n/vite'
|
||||
import templateCompilerOptions from '@tresjs/core/template-compiler-options'
|
||||
import Vue from '@vitejs/plugin-vue'
|
||||
import UnoCss from 'unocss/vite'
|
||||
import Info from 'unplugin-info/vite'
|
||||
@@ -13,7 +14,6 @@ import VueMacros from 'vue-macros/vite'
|
||||
|
||||
import { Download } from '@proj-airi/unplugin-fetch'
|
||||
import { DownloadLive2DSDK } from '@proj-airi/unplugin-live2d-sdk'
|
||||
import templateCompilerOptions from '@tresjs/core/template-compiler-options'
|
||||
import { defineConfig } from 'electron-vite'
|
||||
|
||||
const stageUIAssetsRoot = resolve(join(import.meta.dirname, '..', '..', 'packages', 'stage-ui', 'src', 'assets'))
|
||||
@@ -140,6 +140,13 @@ export default defineConfig({
|
||||
},
|
||||
|
||||
server: {
|
||||
fs: {
|
||||
// To mute errors like:
|
||||
// The request id ".../node_modules/@fontsource/sniglet/files/sniglet-latin-400-normal.woff" is outside of Vite serving allow list.
|
||||
//
|
||||
// See: https://vite.dev/config/server-options#server-fs-strict
|
||||
strict: false,
|
||||
},
|
||||
warmup: {
|
||||
clientFiles: [
|
||||
`${resolve(join(import.meta.dirname, '..', '..', 'packages', 'stage-ui', 'src'))}/*.vue`,
|
||||
|
||||
Reference in New Issue
Block a user