-
Notifications
You must be signed in to change notification settings - Fork 5
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
[Bug]: Not supported to run in Cloudflare Worker Edge environment #37
Comments
Hi @wytxer, Our node SDK was built for Node.js Runtime, as Edge runtime uses web API some of the dependencies we use like the Even though removing the I will find a solution to this problem and get back to you once it is released. Thank you. |
Thank you for your reply. I am building a product based on Cloudflare Worker. Is there a plan for when it will be released? @vijayasingam-paddle |
Hi @wytxer, We do support CloudFlare workers using NodeJS runtime. However, looking at your snippet, you are deploying a NextJS app to CloudFlare workers which as I understand can only run on an edge runtime. If you don't mind me asking, is there any particular reason not to deploy this in Vercel or Netlify where the infra plays well with NextJS applications compared to CF workers? Thank you. |
@vijayasingam-paddle I'm trying to implement paddle in Cloudflare workers, As you mentioned,
I'm planning to use Cloudflare workers as the backend, so could you let me know if this works? |
Hi @westlinkin, Please feel free to reach out to us if you face any difficulties while integrating with your application. Thank you. |
What happened?
Using the Next.js 14 + TypeScript tech stack, with the API set to the edge environment, an error occurs when calling paddle.transactions.create after importing the @paddle/paddle-node-sdk package: Module build failed: UnhandledSchemeError: Reading from "node:crypto".
Steps to reproduce
Reproduction code snippet:
What did you expect to happen?
I hope to use @paddle/paddle-node-sdk in an edge environment.
Logs
The text was updated successfully, but these errors were encountered: