Currently the application assumes certain ENV variables exist (like VITE_SUPABASE_URL, VITE_SUPABASE_ANON_KEY, MONGODB_URI). If any are missing or malformed, runtime errors may occur without a clear message. Add validation (e.g. using zod or joi) at startup to ensure all required environment variables are present and valid. If not, the server should exit with a clear error message.
Benefits:
Developer experience improves (you get early, clear errors)
Avoid crashes further down the line with cryptic stack traces
Helps new contributors set up correctly
please assign this issue to me
Currently the application assumes certain ENV variables exist (like VITE_SUPABASE_URL, VITE_SUPABASE_ANON_KEY, MONGODB_URI). If any are missing or malformed, runtime errors may occur without a clear message. Add validation (e.g. using zod or joi) at startup to ensure all required environment variables are present and valid. If not, the server should exit with a clear error message.
Benefits:
Developer experience improves (you get early, clear errors)
Avoid crashes further down the line with cryptic stack traces
Helps new contributors set up correctly
please assign this issue to me