1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-05-08 01:15:49 +02:00

fix: allow import @server (#2601)

I noticed we had a Vite error when trying to run the front-end locally
bound to `unleash-cloud` due to the new `@server` import. This fixes it
by allowing serving fs from one level up.

Docs: https://vitejs.dev/config/server-options.html#server-fs-allow
This commit is contained in:
Nuno Góis 2022-12-05 16:21:59 +00:00 committed by GitHub
parent 925b89b899
commit d8fa693849
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,9 @@ export default mergeConfig(
changeOrigin: true,
},
},
fs: {
allow: ['..'],
},
},
plugins: [react(), tsconfigPaths(), svgr(), envCompatible()],
esbuild: {