Skip to content
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

fix: don't follow redirects for rewrites #2423

Merged
merged 4 commits into from
Feb 9, 2024
Merged

Conversation

Skn0tt
Copy link
Contributor

@Skn0tt Skn0tt commented Feb 9, 2024

Description

Fixes a bug where we were following the redirects returned by a rewritten page.

Documentation

fixes a bug, no docs needed

Tests

added an e2e test.

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

https://linear.app/netlify/issue/FRA-297/ensure-that-nextresponserewrite-rewrites-instead-of-redirecting

@Skn0tt Skn0tt self-assigned this Feb 9, 2024
Copy link

netlify bot commented Feb 9, 2024

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

Name Link
🔨 Latest commit 9901170
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/65c617ed065092000834fd2a
😎 Deploy Preview https://deploy-preview-2423--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 configuration.

Copy link

netlify bot commented Feb 9, 2024

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

Name Link
🔨 Latest commit 9901170
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/65c617ed11666100085fccd1
😎 Deploy Preview https://deploy-preview-2423--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 configuration.

Copy link

netlify bot commented Feb 9, 2024

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

Name Link
🔨 Latest commit 9901170
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/65c617ed891245000818bbd3
😎 Deploy Preview https://deploy-preview-2423--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 configuration.

@github-actions github-actions bot added the type: bug code to address defects in shipped code label Feb 9, 2024
Copy link

netlify bot commented Feb 9, 2024

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

Name Link
🔨 Latest commit 9901170
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/65c617ed1a81b00008b9c1fe
😎 Deploy Preview https://deploy-preview-2423--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 configuration.

Copy link

netlify bot commented Feb 9, 2024

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit 9901170
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/65c617ed1a81b00008b9c200
😎 Deploy Preview https://deploy-preview-2423--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 configuration.

Copy link

netlify bot commented Feb 9, 2024

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

Name Link
🔨 Latest commit 9901170
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/65c617ed065092000834fd30
😎 Deploy Preview https://deploy-preview-2423--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 configuration.

Copy link

netlify bot commented Feb 9, 2024

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

Name Link
🔨 Latest commit 9901170
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo-all-flags/deploys/65c617ed22fc8f0008e5dae3
😎 Deploy Preview https://deploy-preview-2423--netlify-plugin-nextjs-demo-all-flags.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 configuration.

Copy link

netlify bot commented Feb 9, 2024

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

Name Link
🔨 Latest commit 9901170
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/65c617edea3ffd0008b08a08
😎 Deploy Preview https://deploy-preview-2423--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 configuration.

Copy link

netlify bot commented Feb 9, 2024

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

Name Link
🔨 Latest commit 9901170
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/65c617ed32f7fe0008e4597a
😎 Deploy Preview https://deploy-preview-2423--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 configuration.

Copy link

netlify bot commented Feb 9, 2024

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit 9901170
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/65c617ed0f8e1900088d64af
😎 Deploy Preview https://deploy-preview-2423--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 configuration.

@Skn0tt Skn0tt marked this pull request as ready for review February 9, 2024 12:04
@Skn0tt Skn0tt requested a review from a team as a code owner February 9, 2024 12:04
@Skn0tt
Copy link
Contributor Author

Skn0tt commented Feb 9, 2024

the failing test seems to be unrelated to this change

Copy link
Contributor

@orinokai orinokai left a comment

Choose a reason for hiding this comment

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

niiice

@kodiakhq kodiakhq bot merged commit e59c617 into main Feb 9, 2024
84 of 91 checks passed
@kodiakhq kodiakhq bot deleted the rewrite-to-redirect branch February 9, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants