Skip to content

feat: only run next-dev middleware in dev #1582

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 1 commit into from
Aug 30, 2022
Merged

feat: only run next-dev middleware in dev #1582

merged 1 commit into from
Aug 30, 2022

Conversation

sarahetter
Copy link

Summary

Uncommenting this was missed in the launch plan - this solves the immediate issue of the edge function crashing when first running ntl dev and then ntl deploy --build. There is still other work incoming for the cli, but this takes care of the crash.

Test plan

  1. Create a next project, and do a local install of the next runtime (package json and netlify.toml)
  2. Run npm link in this repo's packages/runtime directory
  3. In your next project, run npm link @netlify/plugin-nextjs
  4. In your next project, run ntl dev, then cancel out of it
  5. In your next project, run ntl deploy --build. Wait until it's completed, and view the deployed site - it should show up without a crash message.

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

@sarahetter sarahetter self-assigned this Aug 30, 2022
@sarahetter sarahetter requested a review from a team August 30, 2022 18:52
@netlify
Copy link

netlify bot commented Aug 30, 2022

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

Name Link
🔨 Latest commit ed9b23e
🔍 Latest deploy log https://app.netlify.com/sites/next-hp-edge-demo/deploys/630e5c5e64ddcd0009393376
😎 Deploy Preview https://deploy-preview-1582--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 30, 2022

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

Name Link
🔨 Latest commit ed9b23e
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/630e5c5e58c7110008fae1fa
😎 Deploy Preview https://deploy-preview-1582--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 30, 2022

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

Name Link
🔨 Latest commit ed9b23e
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/630e5c5e4958f70008186764
😎 Deploy Preview https://deploy-preview-1582--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 30, 2022
@netlify
Copy link

netlify bot commented Aug 30, 2022

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

Name Link
🔨 Latest commit ed9b23e
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/630e5c5e239896000897e512
😎 Deploy Preview https://deploy-preview-1582--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 30, 2022

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

Name Link
🔨 Latest commit ed9b23e
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/630e5c5ef8f7260008d6a77b
😎 Deploy Preview https://deploy-preview-1582--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 30, 2022

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

Name Link
🔨 Latest commit ed9b23e
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/630e5c5ee95bd30009ca5354
😎 Deploy Preview https://deploy-preview-1582--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 30, 2022

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

Name Link
🔨 Latest commit ed9b23e
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-rsc-demo/deploys/630e5c5ee95bd30009ca5356
😎 Deploy Preview https://deploy-preview-1582--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 30, 2022

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit ed9b23e
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/630e5c5e72a86d0008700b78
😎 Deploy Preview https://deploy-preview-1582--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 30, 2022

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

Name Link
🔨 Latest commit ed9b23e
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/630e5c5e7418ca00093759a7
😎 Deploy Preview https://deploy-preview-1582--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 30, 2022

Deploy Preview for next-plugin-canary ready!

Name Link
🔨 Latest commit ed9b23e
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-canary/deploys/630e5c5e64ddcd0009393374
😎 Deploy Preview https://deploy-preview-1582--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 30, 2022

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

Name Link
🔨 Latest commit ed9b23e
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/630e5c5e00deb0000991f540
😎 Deploy Preview https://deploy-preview-1582--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.

Copy link

@nickytonline nickytonline left a comment

Choose a reason for hiding this comment

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

Thanks, @sarahetter 🚀

@kodiakhq kodiakhq bot merged commit 9baf979 into main Aug 30, 2022
@kodiakhq kodiakhq bot deleted the dev-middleware branch August 30, 2022 19:27
@ascorbic
Copy link
Contributor

ascorbic commented Sep 2, 2022

The issue here is fixed properly in #1588

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.

3 participants