Skip to content

fix: remove fs access which isn't available in edge functions #1980

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 3 commits into from
Mar 13, 2023
Merged

Conversation

danez
Copy link

@danez danez commented Mar 13, 2023

Summary

Removes the Deno.stat call from the dev edge function.

It rethrows any errors besides the Module not found error for the middleware.js file.

Because we have a number in the hash of the import it is also super easy to see if this error is from our import or not.

Fixes https://github.com/netlify/pod-ecosystem-frameworks/issues/422

Test plan

Picture of cute animal

61CNGisjWUL SY450

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.

@danez danez requested review from minivan, eduardoboucas, khendrikse and a team March 13, 2023 12:00
@danez danez self-assigned this Mar 13, 2023
@netlify
Copy link

netlify bot commented Mar 13, 2023

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

Name Link
🔨 Latest commit d9ba9bb
🔍 Latest deploy log https://app.netlify.com/sites/next-plugin-edge-middleware/deploys/640f1473398dba0008672af6
😎 Deploy Preview https://deploy-preview-1980--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 Mar 13, 2023

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

Name Link
🔨 Latest commit d9ba9bb
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-export-demo/deploys/640f1473fa90410008997279
😎 Deploy Preview https://deploy-preview-1980--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 Mar 13, 2023

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

Name Link
🔨 Latest commit d9ba9bb
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-static-root-demo/deploys/640f1473398dba0008672af1
😎 Deploy Preview https://deploy-preview-1980--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 Mar 13, 2023

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

Name Link
🔨 Latest commit d9ba9bb
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-nx-monorepo-demo/deploys/640f1473f256f200080b53cb
😎 Deploy Preview https://deploy-preview-1980--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 Mar 13, 2023

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

Name Link
🔨 Latest commit d9ba9bb
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-next-auth-demo/deploys/640f1473d66b8900080615b1
😎 Deploy Preview https://deploy-preview-1980--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 Mar 13, 2023

Deploy Preview for next-i18next-demo ready!

Name Link
🔨 Latest commit d9ba9bb
🔍 Latest deploy log https://app.netlify.com/sites/next-i18next-demo/deploys/640f1473777fac0008e3ffbd
😎 Deploy Preview https://deploy-preview-1980--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.

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

netlify bot commented Mar 13, 2023

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

Name Link
🔨 Latest commit d9ba9bb
🔍 Latest deploy log https://app.netlify.com/sites/netlify-plugin-nextjs-demo/deploys/640f1473777fac0008e3ffc2
😎 Deploy Preview https://deploy-preview-1980--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 Mar 13, 2023

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

Name Link
🔨 Latest commit d9ba9bb
🔍 Latest deploy log https://app.netlify.com/sites/nextjs-plugin-custom-routes-demo/deploys/640f1473f463e8000711f005
😎 Deploy Preview https://deploy-preview-1980--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 Mar 13, 2023

Deploy Preview for next-plugin-canary ready!

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

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 @danez! :shipit:

@danez danez merged commit 6546641 into main Mar 13, 2023
@danez danez deleted the no-fs branch March 13, 2023 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants