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
Did you use some env vars?
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
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?
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 sohttps://discord.com/channels/473401852243869706/1225087322106757172
in most cases also NUXT_PUBLIC