-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(remix-dev/vite): use
/@fs/
path to support default server/clien…
…t entry outside of app root (#7913) Co-authored-by: Pedro Cattori <pcattori@gmail.com>
- Loading branch information
Showing
2 changed files
with
18 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
"@remix-run/dev": patch | ||
--- | ||
|
||
fix(vite): Let Vite handle serving files outside of project root via `/@fs` | ||
|
||
This fixes errors when using default client entry or server entry in a pnpm project | ||
where those files may be outside of the project root, but within the workspace root. | ||
|
||
By default, Vite prevents access to files outside the workspace root | ||
(when using workspaces) or outside of the project root (when not using | ||
workspaces) unless user explicitly opts into it via Vite's `server.fs.allow`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters