Deploy on cloudflare always returns 500
I have an app which runs a absolutely fine locally. No issue whatsoever.
Then when I deploy it to cloudflare it is just returning 500 and prints absolutely no log.
https://hraj-eu.capaj.workers.dev/
here you can see all I get
when I tail the worker:
how do you even begin to debug this?
Locally I get the same behaviour when something throws on module load. For example when I forget an ENV var.
For deployment I have all the env vars. I triplechecked.
Is there any way to like force nitro or tanstack router into some super verbose logging mode so that I can at least see a few logs before it dies?
Or ideally return the error in the json payload it is responding with?
Then when I deploy it to cloudflare it is just returning 500 and prints absolutely no log.
https://hraj-eu.capaj.workers.dev/
here you can see all I get
when I tail the worker:
how do you even begin to debug this?
Locally I get the same behaviour when something throws on module load. For example when I forget an ENV var.
For deployment I have all the env vars. I triplechecked.
Is there any way to like force nitro or tanstack router into some super verbose logging mode so that I can at least see a few logs before it dies?
Or ideally return the error in the json payload it is responding with?