mirror of
https://github.com/OHTU-German-learning-website/OHTU-German-learning-website.git
synced 2026-10-12 19:13:51 +03:00
27 lines
737 B
JavaScript
27 lines
737 B
JavaScript
const basePath = process.env.NEXT_PUBLIC_BASE_PATH || '/gradesa';
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig =
|
|
{
|
|
output: 'standalone',
|
|
|
|
...(basePath ? { basePath } : {}),
|
|
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
|
|
// Add environment variables with default values for build time
|
|
env: {
|
|
SESSION_SECRET: process.env.SESSION_SECRET || 'secret',
|
|
DB_HOST: process.env.DB_HOST || 'localhost',
|
|
DB_PORT: process.env.DB_PORT || '5432',
|
|
DB_USER: process.env.DB_USER || 'postgres',
|
|
DB_PASSWORD: process.env.DB_PASSWORD || 'password',
|
|
DB_NAME: process.env.DB_NAME || 'postgres',
|
|
NEXT_PUBLIC_BASE_PATH: basePath
|
|
}
|
|
};
|
|
|
|
export default nextConfig;
|