-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Updates hydration scripts to use absolute paths #3422
Conversation
🦋 Changeset detectedLatest commit: 7b72f3a The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
@tony-sull think there's just a few tests needing to be updated. |
@matthewp gotta love good test coverage! There was a legit Windows bug in there that the test caught, the PR wasn't forcing posix paths in the build's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woohoo! Great fix.
* WIP: proof of concept fix to use absolute paths * correct fix to handle absolute paths and config.base * adding tests for hydration scripts with config.base * chore: add changeset * fix: ensure posix paths are used for Windows compat
Closes #2561
Changes
This updates hydration scripts to use absolute paths when importing scripts. This is necessary to make sure any client-hydrated scripts on a custom 404 page are loaded properly
Testing
Updated existing tests and added two new ones to confirm this behavior when
config.base
is used to deploy to subpathsDocs
None, bug fix only