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
2023-08-09 21:52:44 +05:30
committed by GitHub
parent ed5671209a
commit 434812dbe3

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