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

This commit is contained in:
Hariom Balhara
2024-04-04 11:51:39 +00:00
committed by GitHub
parent 6a0e2392fe
commit 99f9a121cb
+4
View File
@@ -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);