-
Notifications
You must be signed in to change notification settings - Fork 86
fix: support setting cookies from MiddlewareResponse #2027
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 next-plugin-edge-middleware ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ 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 next-plugin-canary ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for next-i18next-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for nextjs-plugin-custom-routes-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
✅ Deploy Preview for netlify-plugin-nextjs-export-demo ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
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.
These files are the tests from the Next.js repo, so shouldn't have new ones added. New ones should go in either Cypress or Jest tests
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.
that's true (and let me know if you want me to move them @Skn0tt because the folder structure can be a bit difficult to navigate)
however, i've wondered for a while whether we should use the Next.js repo pattern for our own e2e/integration tests - i.e. spinning up small, specific Next.js apps rather than testing against the demo sites, which include a mixed bag of functionality - it seems easier to reason around
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.
Absolutely. They should be a new suite of tests though
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.
and let me know if you want me to move them @Skn0tt because the folder structure can be a bit difficult to navigate
that'd be lovely, yeah!
i'm not sure wether mix fix actually fixes the problem, but having tests in the right directory would definitely help :D
@taty2010 could you cast your eye over this, because I think you were dealing with a PR not long ago that involved cookies and middleware? |
got everything working locally, would appreciate some help with the failing CI tests! |
currently looking into the failing tests. |
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.
prev failing tests are now passing and everything else looks gtm
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.
Tested this with @taty2010. 🚢
thanks for taking this across the finish line! |
Summary
Fixes https://github.com/netlify/pillar-support/issues/350
Test plan
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.