fix: Show proper error when API_V2_URL variable is missing (#14269)
This commit is contained in:
1 parent
6a0e2392fe
commit
99f9a121cb
1 file changed
+4
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user