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

Closed
Cologler opened this issue Nov 3, 2023 · 1 comment
Closed

Support cloudflare worker environment #256

Cologler opened this issue Nov 3, 2023 · 1 comment

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?

@Cologler
Copy link
Author

Fixed by #252

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