From d8fa6938494a3875bc5e1b54d0382e0ce1736733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Mon, 5 Dec 2022 16:21:59 +0000 Subject: [PATCH] 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 --- frontend/vite.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index ba90142891..134d8ba4b4 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -62,6 +62,9 @@ export default mergeConfig( changeOrigin: true, }, }, + fs: { + allow: ['..'], + }, }, plugins: [react(), tsconfigPaths(), svgr(), envCompatible()], esbuild: {