Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🐛 Use dotenv in next config to load env vars from root (#1271)

Luke Vella58640648d2c0
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 9d6c7cad3..099650e36 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -8,6 +8,10 @@ const withBundleAnalyzer = require("@next/bundle-analyzer")({
enabled: process.env.ANALYZE === "true",
});
+require("dotenv").config({
+ path: "../../.env",
+});
+
/** @type {import('next').NextConfig} */
const nextConfig = {
output: