Allow vite to serve files from workspace's parent directory (#5675)

* fix: allow vite to serve files from workspace parent dir

* trigger ci

* trigger ci
This commit is contained in:
Apoorv Mishra authored and GitHub committed 2023-08-09 21:52:44 +05:30
1 parent ed5671209a
commit 434812dbe3
1 file changed
+7
+7
View File
@@ -38,6 +38,13 @@ export default () =>
port: 3001,
host: true,
https: httpsConfig,
fs:
process.env.NODE_ENV === "development"
? {
// Allow serving files from one level up to the project root
allow: [".."],
}
: { strict: true },
},
plugins: [
// https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#readme