You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you hit the "Increment" button you will get an error that is due to vite rejecting the request to /foo.data as it is outside the vite base (== remix basename) which is "/foo/".
I think this was introduced involuntarily by #9792 as it tries to prevent the /.data url format.
freeman
changed the title
[SingleFetch][basename] root data endpoint is outside base name
[SingleFetch][basename] root data endpoint is outside basename
Nov 11, 2024
Reproduction
You can see the issue on this code sandbox: https://codesandbox.io/p/devbox/zwd9rl
If you hit the "Increment" button you will get an error that is due to vite rejecting the request to /foo.data as it is outside the vite base (== remix basename) which is "/foo/".
I think this was introduced involuntarily by #9792 as it tries to prevent the
/.data
url format.System Info
Used Package Manager
pnpm
Expected Behavior
I would expect requests for the root/_index data loader when a basename (
/foo/
for example) is present to honor it and use either :/foo/_root.data
/foo/.data
(though I agree that this format is not great as it may often be blocked as an attempt to access hidden files)Actual Behavior
When a basename is configured root/index loader data url goes outside of the basename.
The text was updated successfully, but these errors were encountered: