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

Support cloudflare worker environment #256

Open
Cologler opened this issue Nov 3, 2023 · 0 comments
Open

Support cloudflare worker environment #256

Cologler opened this issue Nov 3, 2023 · 0 comments

Comments

@Cologler
Copy link

Cologler commented Nov 3, 2023

Cloudflare worker does not allow generating random values in global:

Uncaught Error: Some functionality, such as asynchronous I/O, timeouts, and generating random values, can only be performed while handling a request.

Remove this line will fix the error:

uid: nanoid(),

Maybe the defaults can be lazy initialization?

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

No branches or pull requests

2 participants