Fixes preview deploys

fix/license_text
zomars 2022-06-03 12:48:47 -06:00
parent d5e40faeb5
commit debbd980d9
1 changed files with 2 additions and 1 deletions

View File

@ -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);