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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user