N
Nuxt7mo ago
Nisthar

I am getting error 500 on deploying to cloudfalre pages. The api endpoints are working.

I am getting error 500 on deploying to cloudfalre pages. The api endpoints are working. only the normal routes are giving 500. How can i debug this?
5 Replies
Luckystriike
Luckystriike7mo ago
Did you use some env vars?
Nisthar
NistharOP7mo ago
Yeah i added them to cf as well I can see env vars working when navigating to an api endpoint the pages are not working at all
Luckystriike
Luckystriike7mo ago
Not sure how to debug, but I think we need more information, such as screenshots of the error, the folder structure, and possibly other details. So, it’s failing during deployment?
Nisthar
NistharOP7mo ago
No deployment is successful with no errors. maybe cloudflare doesn't support app/router.options.ts file Yes it looks like the router options file is not working It seems like you have to use process.env.ENV_NAME for public variables in cloudflare Idk why this is so
Want results from more Discord servers?
Add your server