Fixes preview deploys
parent
d5e40faeb5
commit
debbd980d9
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue