Skip to content

Commit

Permalink
fix: allow import @server (#2601)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
nunogois committed Dec 5, 2022
1 parent 925b89b commit d8fa693
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frontend/vite.config.ts
Expand Up @@ -62,6 +62,9 @@ export default mergeConfig(
changeOrigin: true,
},
},
fs: {
allow: ['..'],
},
},
plugins: [react(), tsconfigPaths(), svgr(), envCompatible()],
esbuild: {
Expand Down

0 comments on commit d8fa693

Please sign in to comment.