Skip to content

fix: handle v1 edge function definition #1903

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
Jan 24, 2023
Merged

fix: handle v1 edge function definition #1903

merged 2 commits into from
Jan 24, 2023

Conversation

ascorbic
Copy link
Contributor

@ascorbic ascorbic commented Jan 24, 2023

Summary

Follow me, if you will, back to the summer of 2022. Next.js middleware had gone to GA, which included updating the manifest format to include functions as well as middleware. Shortly after (the next patch release) they added support for middleware matchers, replacing the regex key on middleware defintions with an array of matchers, and doing the same for the new functions because why not add a new feature and make a breaking change to a format in a patch release. Anyway, for that brief period in June there was support for functions but no matchers. This PR makes those work.

Test plan

  1. Ensure the new unit tests pass. I'm not adding a demo site for a manifest format that was around for less time than the British prime minister who was running for office at that time. A unit test will have to do.

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 January 24, 2023 11:37
@netlify
Copy link

netlify bot commented Jan 24, 2023

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

Name Link
🔨 Latest commit b050d9f
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/63cfdc0d6e31e90008d9a2fc
😎 Deploy Preview https://deploy-preview-1903--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 Jan 24, 2023

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

Name Link
🔨 Latest commit b050d9f
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/63cfdc0d03eeb00008ac60d5
😎 Deploy Preview https://deploy-preview-1903--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 Jan 24, 2023

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

Name Link
🔨 Latest commit b050d9f
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/63cfdc0d90091a0008412a58
😎 Deploy Preview https://deploy-preview-1903--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 Jan 24, 2023

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

Name Link
🔨 Latest commit b050d9f
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/63cfdc0d6abbe90008ed3f41
😎 Deploy Preview https://deploy-preview-1903--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 Jan 24, 2023

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit b050d9f
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/63cfdc0d6e3c9b0008f8f51c
😎 Deploy Preview https://deploy-preview-1903--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.

@github-actions github-actions bot added the type: bug code to address defects in shipped code label Jan 24, 2023
@netlify
Copy link

netlify bot commented Jan 24, 2023

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

Name Link
🔨 Latest commit b050d9f
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/63cfdc0d8b4ad900098d9727
😎 Deploy Preview https://deploy-preview-1903--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 Jan 24, 2023

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit b050d9f
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/63cfdc0d48b65200094fe1d4
😎 Deploy Preview https://deploy-preview-1903--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 Jan 24, 2023

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

Name Link
🔨 Latest commit b050d9f
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/63cfdc0dd9ae11000a7e5bf9
😎 Deploy Preview https://deploy-preview-1903--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 Jan 24, 2023

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

Name Link
🔨 Latest commit b050d9f
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/63cfdc0deb0b52000934c792
😎 Deploy Preview https://deploy-preview-1903--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.

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.

🤣 at the description for this PR!

@kodiakhq kodiakhq bot merged commit cdcf60e into main Jan 24, 2023
@kodiakhq kodiakhq bot deleted the mk/ef-null-check branch January 24, 2023 13:27
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