Spaces:
Configuration error
Configuration error
File size: 541 Bytes
aa15bce |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import envPackage from '@next/env';
import { dirname, resolve } from 'path';
import { fileURLToPath } from 'url';
// Ensure the Next.js runtime loads environment variables declared in the repo root .env
const __dirname = dirname(fileURLToPath(import.meta.url));
const repoRoot = resolve(__dirname, '..');
const isDevelopment = process.env.NODE_ENV !== 'production';
const { loadEnvConfig } = envPackage;
loadEnvConfig?.(repoRoot, isDevelopment);
/** @type {import('next').NextConfig} */
const nextConfig = {};
export default nextConfig;
|