Skip to content

feat: default edge middleware to on #1547

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
Aug 18, 2022
Merged

feat: default edge middleware to on #1547

merged 4 commits into from
Aug 18, 2022

Conversation

ascorbic
Copy link
Contributor

@ascorbic ascorbic commented Aug 17, 2022

Summary

Change edge function to opt-out instead of opt-in. To disable it, they must set NEXT_DISABLE_NETLIFY_EDGE to true. If this is set and the site has middleware it will give a warning saying this is deprecated but won;t fail the build. However if the site has edge functions (i.e. edge runtime) then it will fail the build.

I am asking to merge this before I've written the full tests and updated the docs so that we can get a tagged release out asap. I will follow up with tests. Issue here: #1552

Test plan

  1. Visit the middleware and server components deploy previews

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

Fixes #1431

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 17, 2022 18:16
@netlify
Copy link

netlify bot commented Aug 17, 2022

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

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

@netlify
Copy link

netlify bot commented Aug 17, 2022

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

Name Link
🔨 Latest commit 087607c
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/62fe0b383070b8000919374d
😎 Deploy Preview https://deploy-preview-1547--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 17, 2022

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

Name Link
🔨 Latest commit 087607c
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/62fe0b3852caa5000826bd8d
😎 Deploy Preview https://deploy-preview-1547--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.

@github-actions github-actions bot added the type: feature code contributing to the implementation of a feature and/or user facing functionality label Aug 17, 2022
@netlify
Copy link

netlify bot commented Aug 17, 2022

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

Name Link
🔨 Latest commit 087607c
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/62fe0b38beb84300092b88d7
😎 Deploy Preview https://deploy-preview-1547--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 17, 2022

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

Name Link
🔨 Latest commit 087607c
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/62fe0b38cd842400094b309c
😎 Deploy Preview https://deploy-preview-1547--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 17, 2022

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

Name Link
🔨 Latest commit 087607c
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/62fe0b38beb84300092b88dc
😎 Deploy Preview https://deploy-preview-1547--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 17, 2022

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit 087607c
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/62fe0b38cd842400094b30a1
😎 Deploy Preview https://deploy-preview-1547--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 17, 2022

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

Name Link
🔨 Latest commit 087607c
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/62fe0b39b1e97d0008008a1b
😎 Deploy Preview https://deploy-preview-1547--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 17, 2022

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit 087607c
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/62fe0b39de24f20008425d1c
😎 Deploy Preview https://deploy-preview-1547--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 Aug 17, 2022

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

Name Link
🔨 Latest commit 087607c
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-rsc-demo/deploys/62fe0b38b1e97d0008008a16
😎 Deploy Preview https://deploy-preview-1547--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 17, 2022

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

Name Link
🔨 Latest commit 087607c
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/62fe0b385e5be2000832161d
😎 Deploy Preview https://deploy-preview-1547--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.

@kodiakhq kodiakhq bot merged commit 9578fa9 into main Aug 18, 2022
@kodiakhq kodiakhq bot deleted the mk/default-edge branch August 18, 2022 10:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Auto-enable edge functions if site has edge runtime enabled
2 participants