Just used wrangler locally to try the Cloudflare Worker support. I know a lot has been done recently to add support for non-Node JS environments.
Tried it at this commit from yesterday:
1c2e183
Here's the last thing I'm running into:
src/util/server-sdk-js-main/dist/WebhookReceiver.js:1:19:
1 │ import crypto from 'crypto';
╵ ~~~~~~~~
The package "crypto" wasn't found on the file system but is built into node.
They recommend the Web Crypto API: https://developers.cloudflare.com/workers/runtime-apis/web-crypto
After just commenting that code out locally, it was able to generate a JWT while running in wrangler - so I think this is the last thing left. Thanks!
Just used wrangler locally to try the Cloudflare Worker support. I know a lot has been done recently to add support for non-Node JS environments.
Tried it at this commit from yesterday:
1c2e183
Here's the last thing I'm running into:
They recommend the Web Crypto API: https://developers.cloudflare.com/workers/runtime-apis/web-crypto
After just commenting that code out locally, it was able to generate a JWT while running in wrangler - so I think this is the last thing left. Thanks!