Skip to content

fix: add cookies route to middleware config #1730

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

Merged
merged 4 commits into from
Oct 28, 2022
Merged

Conversation

sarahetter
Copy link

Summary

The middleware demo isn't setting a cookie on the /cookies route currently because we forgot to add it to the config.

Fixes #1639

Test plan

  1. Visit the middleware Deploy Preview
  2. Click the "Cookies API" link, or visit /cookies
  3. See that the "netlifyCookie" has been set.

Relevant links (GitHub issues, Notion docs, etc.) or a picture of cute animal

PXL_20210524_182610476 MP

Standard checks:

  • Check the Deploy Preview's Demo site for your PR's functionality
  • Add docs when necessary

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

@sarahetter sarahetter requested a review from a team October 28, 2022 13:53
@netlify
Copy link

netlify bot commented Oct 28, 2022

Deploy Preview for netlify-plugin-nextjs-static-root-demo ready!

Name Link
🔨 Latest commit e53c755
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/635bffd71517d20008be0650
😎 Deploy Preview https://deploy-preview-1730--netlify-plugin-nextjs-static-root-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 28, 2022

Deploy Preview for next-plugin-edge-middleware ready!

Name Link
🔨 Latest commit e53c755
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/635bffd7635bc50008e95734
😎 Deploy Preview https://deploy-preview-1730--next-plugin-edge-middleware.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@github-actions github-actions bot added the type: bug code to address defects in shipped code label Oct 28, 2022
@netlify
Copy link

netlify bot commented Oct 28, 2022

Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!

Name Link
🔨 Latest commit 7bdf8a1
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/635bded2d1e2f30009f7d92c
😎 Deploy Preview https://deploy-preview-1730--netlify-plugin-nextjs-next-auth-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 28, 2022

Deploy Preview for nextjs-plugin-custom-routes-demo ready!

Name Link
🔨 Latest commit 7bdf8a1
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/635bded2de95930008c83801
😎 Deploy Preview https://deploy-preview-1730--nextjs-plugin-custom-routes-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 28, 2022

Deploy Preview for netlify-plugin-nextjs-nx-monorepo-demo ready!

Name Link
🔨 Latest commit e53c755
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/635bffd740d7100008cbaa73
😎 Deploy Preview https://deploy-preview-1730--netlify-plugin-nextjs-nx-monorepo-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 28, 2022

Deploy Preview for netlify-plugin-nextjs-export-demo ready!

Name Link
🔨 Latest commit 7bdf8a1
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/635bded24dd3eb000906ea3f
😎 Deploy Preview https://deploy-preview-1730--netlify-plugin-nextjs-export-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 28, 2022

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit 7bdf8a1
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/635bded20e6ebc00083cd368
😎 Deploy Preview https://deploy-preview-1730--next-plugin-canary.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 28, 2022

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit 7bdf8a1
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/635bded2d39df30008f9f09d
😎 Deploy Preview https://deploy-preview-1730--next-i18next-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 28, 2022

Deploy Preview for netlify-plugin-nextjs-demo ready!

Name Link
🔨 Latest commit 7bdf8a1
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/635bded3d39df30008f9f0a3
😎 Deploy Preview https://deploy-preview-1730--netlify-plugin-nextjs-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 28, 2022

Deploy Preview for nextjs-plugin-custom-routes-demo ready!

Name Link
🔨 Latest commit e53c755
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/635bffd7920b8700084c0eb3
😎 Deploy Preview https://deploy-preview-1730--nextjs-plugin-custom-routes-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 28, 2022

Deploy Preview for netlify-plugin-nextjs-export-demo ready!

Name Link
🔨 Latest commit e53c755
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/635bffd78c32350008cd060b
😎 Deploy Preview https://deploy-preview-1730--netlify-plugin-nextjs-export-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 28, 2022

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit e53c755
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/635bffd75631ac00080c3fb7
😎 Deploy Preview https://deploy-preview-1730--next-i18next-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 28, 2022

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit e53c755
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/635bffd7ab0865000d749439
😎 Deploy Preview https://deploy-preview-1730--next-plugin-canary.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 28, 2022

Deploy Preview for netlify-plugin-nextjs-next-auth-demo ready!

Name Link
🔨 Latest commit e53c755
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/635bffd7621ff100081a8653
😎 Deploy Preview https://deploy-preview-1730--netlify-plugin-nextjs-next-auth-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@netlify
Copy link

netlify bot commented Oct 28, 2022

Deploy Preview for netlify-plugin-nextjs-demo ready!

Name Link
🔨 Latest commit e53c755
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/635bffd7f001c300091db941
😎 Deploy Preview https://deploy-preview-1730--netlify-plugin-nextjs-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@ascorbic
Copy link
Contributor

What a handsome hound.

Do we have a test that would have caught this?

@sarahetter
Copy link
Author

@ascorbic Good point! Added a cypress test to check for the cookie.

Copy link
Contributor

@ascorbic ascorbic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢 🍪

@sarahetter sarahetter merged commit e813101 into main Oct 28, 2022
@sarahetter sarahetter deleted the middleware-demo branch October 28, 2022 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Next runtime middleware demo not working correctly
2 participants