From 10edc1f4ac4cf6e2464e96f28738ba80743e5174 Mon Sep 17 00:00:00 2001 From: zomars Date: Fri, 3 Jun 2022 10:50:48 -0600 Subject: [PATCH] Update next.config.js --- 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 91b23ea790..3baf24fc50 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -13,6 +13,10 @@ const withTM = require("next-transpile-modules")([ ]); const { i18n } = require("./next-i18next.config"); +if (!process.env.NEXTAUTH_URL) throw new Error("Please set NEXTAUTH_URL"); +if (!process.env.NEXTAUTH_SECRET) throw new Error("Please set NEXTAUTH_SECRET"); +if (!process.env.CALENDSO_ENCRYPTION_KEY) throw new Error("Please set CALENDSO_ENCRYPTION_KEY"); + // So we can test deploy previews preview if (process.env.VERCEL_URL && !process.env.NEXT_PUBLIC_WEBAPP_URL) { process.env.NEXT_PUBLIC_WEBAPP_URL = "https://" + process.env.VERCEL_URL;