mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
fix(vite): enable fs strict mode (#8674)
This commit is contained in:
parent
9eb6a62471
commit
44b4100e4c
@ -64,12 +64,12 @@ export default defineUntypedSchema({
|
|||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
fs: {
|
fs: {
|
||||||
strict: false,
|
|
||||||
allow: {
|
allow: {
|
||||||
$resolve: async (val, get) => [
|
$resolve: async (val, get) => [
|
||||||
await get('buildDir'),
|
await get('buildDir'),
|
||||||
await get('srcDir'),
|
await get('srcDir'),
|
||||||
await get('rootDir'),
|
await get('rootDir'),
|
||||||
|
await get('workspaceDir'),
|
||||||
...(await get('modulesDir')),
|
...(await get('modulesDir')),
|
||||||
...val ?? []
|
...val ?? []
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user