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

This commit is contained in:
Luke Vella 2024-08-24 11:21:12 +01:00 committed by GitHub
parent d105049119
commit 58640648d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: