-
Notifications
You must be signed in to change notification settings - Fork 89
fix: run edge middleware on data requests #1382
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-demo canceled.
|
✅ Deploy Preview for netlify-plugin-nextjs-static-root-demo canceled.
|
✅ Deploy Preview for netlify-plugin-nextjs-export-demo canceled.
|
✅ Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-next-auth-demo canceled.
|
✅ Deploy Preview for next-plugin-edge-middleware canceled.
|
✅ Deploy Preview for next-plugin-rsc-demo canceled.
|
✅ Deploy Preview for next-i18next-demo canceled.
|
❌ Deploy Preview for next-plugin-canary failed.
|
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
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.
LGTM
When we have e2e canary tests, or it is released in Next then we can add tests for this.
When you have a moment (and if you haven't already/it doesn't already exist), could you create a Github issue for this so we don't forget?
Summary
Next.js now runs middleware on internal data requests, so this PR updates the edge function to not skip these.
Test plan
3.json
request has anx-middleware-date
headerWhen we have e2e canary tests, or it is released in Next then we can add tests for this.
Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal
Standard checks:
🧪 Once merged, make sure to update the version if needed and that it was published correctly.