wasp-lang / wasp

The fastest way to develop full-stack web apps with React & Node.js.
https://wasp-lang.dev
MIT License
12.7k stars 1.13k forks source link

Provide better error messaging when env vars are missing in production #2086

Open Martinsos opened 3 weeks ago

Martinsos commented 3 weeks ago

Spin off based on this coment: https://github.com/wasp-lang/wasp/issues/175#issuecomment-2105139654 .

Wasp should also be checking for required env vars when deployed to production. It happens sometimes to Wasp users that they forget about an env var once they deploy a Wasp app, and then those errors manifest in weird ways, and they have hard time debugging them. If Wasp server (or client), when deployed, detected that these vars are missing, logged about it and if needed even crashed, it would be very clear that there is an issue and what it is.

We had multiple people have trouble with this, here is one of the related Discord convos: https://discord.com/channels/686873244791210014/1241745021955473548/1247977812229357668 .

Martinsos commented 3 weeks ago

One more user hitting this here: https://discord.com/channels/686873244791210014/1245842338090319912/1246584540097417286 .

Martinsos commented 2 weeks ago

One more issue with this https://discord.com/channels/686873244791210014/1250104524014616626/1250124996576284693 , i am sending it back to triage