Next.js Discord

Discord Forum

Errors in DEV and PROD after successful build

Unanswered
Knopper gall posted this in #help-forum
Open in Discord
Knopper gallOP
Hi Folks,
I sucessfully built my first NextJS website yesterday evening, and all was fine, next start was rendering the site just fine ...
However this morning, without stopping the server, i tried to reload any page on the site and I got errors, so i stopped the task and ran next dev --turbopack (my up until now default environment) only to get the very helpful error:
[Error: {"errors":"<html>\r\n<head><title>502 Bad Gateway</title></head>\r\n<body>\r\n<center><h1>502 Bad Gateway</h1></center>\r\n<hr><center>openresty</center>\r\n</body>\r\n</html>\r\n","response":{}}] {
  digest: '3202828242'
}


So first thing i tried was deleting the whole .next folder (thanks stack overflow /s) no change to errors

i'm currently only using localhost:3000 to access the site so unless VSCode has got all borked up from the update yesterday (but htat was before i did the successful build, I can't see what's wrong. No code has been changed, nothing

can anyone please offer some help / advice

thanks in advance

0 Replies