Skip to content
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

fix: ⚡ check node version before applying Web Crypto API on globa… #933

Closed
wants to merge 1 commit into from
Closed

Conversation

davycoe
Copy link
Contributor

@davycoe davycoe commented Jul 8, 2023

start-cloudflare-pages adapter: May not be the best solution but works...

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

Bugfix

What is the current behavior?

If client is on Node 19+ when running in dev you'll encounter GET /: TypeError: Cannot set property crypto of #<Object>

What is the new behavior?

Check is made to see if client is less than Node v19 before applying Web Crypto API on globalThis.crypto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant