-
Notifications
You must be signed in to change notification settings - Fork 87
fix: serve static files from basePath #1850
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
Conversation
✅ Deploy Preview for netlify-plugin-nextjs-export-demo canceled.
|
✅ Deploy Preview for netlify-plugin-nextjs-static-root-demo canceled.
|
✅ Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo canceled.
|
✅ Deploy Preview for next-plugin-edge-middleware canceled.
|
✅ Deploy Preview for next-plugin-canary canceled.
|
✅ Deploy Preview for netlify-plugin-nextjs-demo canceled.
|
✅ Deploy Preview for nextjs-plugin-custom-routes-demo canceled.
|
✅ Deploy Preview for netlify-plugin-nextjs-next-auth-demo canceled.
|
✅ Deploy Preview for next-i18next-demo canceled.
|
test/e2e/modified-tests/i18n-ignore-rewrite-source-locale/rewrites-with-basepath.test.ts
Outdated
Show resolved
Hide resolved
Re-running the e2e tests now that the incident is mitigated |
db07fb2
to
5d5df9f
Compare
Love it!! Thank you so much! |
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.
Works as expected. Thanks @ascorbic! 🚀
Looks like there are some E2E tests failing. |
This is "should have correct route params for chained rewrite from middleware to config rewrite", which @orinokai thought was related to the Next update, but seems to be failing in main too. As it's unrelated I don't think it's a blocker, and I'll investigate it properly tomorrow |
This PR currently has a merge conflict. Please resolve this and then re-add the |
Summary
When a site defined a
basePath
, static files were being incorrectly served from the root rather than the basePath.Test plan
Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal
Fixes #1849

Standard checks:
🧪 Once merged, make sure to update the version if needed and that it was published correctly.