From 99f9a121cb48d4f167fc34733b13e2dd6b01aa5b Mon Sep 17 00:00:00 2001 From: Hariom Balhara Date: Thu, 4 Apr 2024 17:21:39 +0530 Subject: [PATCH] fix: Show proper error when API_V2_URL variable is missing (#14269) --- apps/web/next.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 4d0be25fe1..eb2cf39bae 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);