Skip to content

Scheduling infrastructure for absolutely everyone.

Fixes preview deploys

zomarsdebbd980d9f7
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 3baf24fc505..ac3902b8ca4 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -13,7 +13,6 @@ 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");
@@ -36,6 +35,8 @@ if (!process.env.EMAIL_FROM) {
);
}
+if (!process.env.NEXTAUTH_URL) throw new Error("Please set NEXTAUTH_URL");
+
const validJson = (jsonString) => {
try {
const o = JSON.parse(jsonString);