Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Show proper error when API_V2_URL variable is missing (#14269)

Hariom Balhara99f9a121cb48
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 4d0be25fe13..eb2cf39baeb 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -50,6 +50,10 @@ if (!process.env.EMAIL_FROM) {
if (!process.env.NEXTAUTH_URL) throw new Error("Please set NEXTAUTH_URL");
+if (!process.env.NEXT_PUBLIC_API_V2_URL) {
+ console.error("Please set NEXT_PUBLIC_API_V2_URL");
+}
+
const validJson = (jsonString) => {
try {
const o = JSON.parse(jsonString);