Skip to content

chore: retain patched server files #1533

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 2 commits into from
Aug 15, 2022
Merged

chore: retain patched server files #1533

merged 2 commits into from
Aug 15, 2022

Conversation

ascorbic
Copy link
Contributor

Summary

As part of the build process, we patch the next server files to enable certain features. Currently we unpatch the files after the build, to keep things clean. However this means they're not patched when running ntl dev. This is a problem if we want to run middleware, which needs the patch to be enabled.

This PR changes it so that the files aren't unpatched. Instead we ensure that if the file has been patched that we use the unpatched version when applying the patch again.

Test plan

  1. Ensure the site builds and that middleware works

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

image

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.

@ascorbic ascorbic requested a review from a team August 15, 2022 12:14
@netlify
Copy link

netlify bot commented Aug 15, 2022

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

Name Link
🔨 Latest commit 5f4ec9d
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/62fa57cda62f0100099701f7
😎 Deploy Preview https://deploy-preview-1533--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 Aug 15, 2022

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

Name Link
🔨 Latest commit 5f4ec9d
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/62fa57cd3383a30009da839e
😎 Deploy Preview https://deploy-preview-1533--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 Aug 15, 2022

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

Name Link
🔨 Latest commit 5f4ec9d
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/62fa57cd7629fd00087f84d0
😎 Deploy Preview https://deploy-preview-1533--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.

@netlify
Copy link

netlify bot commented Aug 15, 2022

Deploy Preview for next-hp-edge-demo ready!

Name Link
🔨 Latest commit 5f4ec9d
🔍 Latest deploy log https://app.netlify.com/sites/next-hp-edge-demo/deploys/62fa57cd574395000843c2d1
😎 Deploy Preview https://deploy-preview-1533--next-hp-edge-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.

@github-actions github-actions bot added the type: chore work needed to keep the product and development running smoothly label Aug 15, 2022
@netlify
Copy link

netlify bot commented Aug 15, 2022

Deploy Preview for next-plugin-rsc-demo ready!

Name Link
🔨 Latest commit 5f4ec9d
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-rsc-demo/deploys/62fa57cd9965e9000989278c
😎 Deploy Preview https://deploy-preview-1533--next-plugin-rsc-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 Aug 15, 2022

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

Name Link
🔨 Latest commit 5f4ec9d
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/62fa57cd91adcc000831d82a
😎 Deploy Preview https://deploy-preview-1533--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 Aug 15, 2022

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

Name Link
🔨 Latest commit 5f4ec9d
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/62fa57cd2a53020008215cd9
😎 Deploy Preview https://deploy-preview-1533--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 Aug 15, 2022

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

Name Link
🔨 Latest commit 5f4ec9d
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/62fa57cdd2084e0008b12e2e
😎 Deploy Preview https://deploy-preview-1533--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 Aug 15, 2022

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit 5f4ec9d
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/62fa57cd1c7549000893d578
😎 Deploy Preview https://deploy-preview-1533--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 Aug 15, 2022

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

Name Link
🔨 Latest commit 5f4ec9d
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/62fa57cd91adcc000831d825
😎 Deploy Preview https://deploy-preview-1533--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 Aug 15, 2022

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit 5f4ec9d
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/62fa57cdede5fd00083a8aa3
😎 Deploy Preview https://deploy-preview-1533--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.

@kodiakhq kodiakhq bot merged commit 4fdcb21 into main Aug 15, 2022
@kodiakhq kodiakhq bot deleted the mk/dont-unpatch branch August 15, 2022 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge type: chore work needed to keep the product and development running smoothly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants