Debugging Script startup exceeded CPU time limit.
Hi, I'm using remix on cloudflare pages, when I try deploying I get -
Seems like a common issue with pages and workers, but I haven't found a good way to debug this other than making heavy imports async. Its not clear what might be the heavy import in my application
since my server bundle is 163K, any pointers on how I can debug this further? Is there a way to investigate startup time locally.
I'm using note compatibility for remix-auth-totp, but nothing else that happens in global context. I'm also using R2, D1, and KV.
Error: Failed to publish your Function. Got error: Error: Script startup exceeded CPU time limit.Seems like a common issue with pages and workers, but I haven't found a good way to debug this other than making heavy imports async. Its not clear what might be the heavy import in my application
since my server bundle is 163K, any pointers on how I can debug this further? Is there a way to investigate startup time locally.
I'm using note compatibility for remix-auth-totp, but nothing else that happens in global context. I'm also using R2, D1, and KV.