(Cloudflare) Workers CPU resources exceeded
Hello everyone, I have a web app made using SvelteKit and am facing this issue where my cpu resources are being exceeded while signing in or up, i.e the limit of 10ms CPU time is not enough for these auth purposes, now is there any way to avoid this or only upgrading to paid plans can make it avoid this problem? I have two alternatives or workaround I can use:
- Create a different server for this sole purpose, i.e a deno server which signs in, parses the cookie sends back to our main app
- Migrate to something like Vercel.
Is the first solution viable and vulnerable to security concerns?
Currently this is the code am using:
Help would be really appreciated, Thanks.
1 Reply
Even using client auth doesnt solve this issue.
This happens only while signing in with email and password method