diff --git a/packages/schema/src/config/vite.ts b/packages/schema/src/config/vite.ts index 50168b142c..19ab38c82f 100644 --- a/packages/schema/src/config/vite.ts +++ b/packages/schema/src/config/vite.ts @@ -64,12 +64,12 @@ export default defineUntypedSchema({ }, server: { fs: { - strict: false, allow: { $resolve: async (val, get) => [ await get('buildDir'), await get('srcDir'), await get('rootDir'), + await get('workspaceDir'), ...(await get('modulesDir')), ...val ?? [] ]