-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
monorepo setups break when updating to vite 2.3.x #3347
Labels
p3-minor-bug
An edge case that only affects very specific usage (priority)
Comments
lovasoa
changed the title
monorepo setupts break when updating to vite 2.3.x
monorepo setups break when updating to vite 2.3.x
May 11, 2021
Shinigami92
added
the
p3-minor-bug
An edge case that only affects very specific usage (priority)
label
May 11, 2021
9 tasks
Have the same issue, in addition, SSR seems to trigger the problem when simply referencing the route.
|
This should be fixed in the latest version of Vite. See also https://vitejs.dev/config/#server-fs-allow with a config like export default {
server: {
fs: {
// Allow serving files from one level up to the project root
allow: ['..']
}
}
} in case the heuristic to detect the monorepo isn't working by default in your project. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Describe the bug
All monorepo projects were accidentally broken while trying to fix an arbitrary file inclusion vulnerability in #3321
Reproduction
Create two folders:
root/frontend
androot/mypackage
root/mypackage
root/frontend
root/frontend
, npm install ../mypackageLogs
See #3321 (comment)
The text was updated successfully, but these errors were encountered: