Update next.config.js

fix/license_text
zomars 2022-06-03 10:50:48 -06:00
parent 42c49a8263
commit 10edc1f4ac
1 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,10 @@ const withTM = require("next-transpile-modules")([
]); ]);
const { i18n } = require("./next-i18next.config"); 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 // So we can test deploy previews preview
if (process.env.VERCEL_URL && !process.env.NEXT_PUBLIC_WEBAPP_URL) { if (process.env.VERCEL_URL && !process.env.NEXT_PUBLIC_WEBAPP_URL) {
process.env.NEXT_PUBLIC_WEBAPP_URL = "https://" + process.env.VERCEL_URL; process.env.NEXT_PUBLIC_WEBAPP_URL = "https://" + process.env.VERCEL_URL;