Hi there,
I’m trying to deploy a Nuxt SSR app. The deployment works but when visiting the URL I get a 502 bad gateway error.
I’m not sure what to do and there seem to be no documentation on how to fix that.
Can you please advise?
Thanks
Hi there,
I’m trying to deploy a Nuxt SSR app. The deployment works but when visiting the URL I get a 502 bad gateway error.
I’m not sure what to do and there seem to be no documentation on how to fix that.
Can you please advise?
Thanks
Hello Lunar,
First of all, welcome to the Cleavr forum.
Here’s the documentation on NodeJS deployments troubleshooting: NodeJS Deployments Troubleshooting - Cleavr docs . This covers a lot of possible causes for 502 errors.
I hope this helps. Do let us know if the docs don’t cover your issue or if you face anything else.
Hi Anish,
Thanks for the link, that solved the problem, I had forgot to add:
server:{
port:process.env.PORT,
host:process.env.HOST
}
To my nuxt.config and also hadn’t changed the env variables.