- remove Next.js rewrites to http://127.0.0.1:8000 - require NEXT_PUBLIC_BACKEND_URL in API routes (config, financials, config/test) - prevent accidental fallback to host ports; use container service name backend:8000
18 lines
491 B
JavaScript
18 lines
491 B
JavaScript
import { fileURLToPath } from 'url';
|
|
import path from 'path';
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
// Explicitly set Turbopack root to this frontend directory to silence multi-lockfile warning
|
|
turbopack: {
|
|
root: __dirname,
|
|
},
|
|
// Increase server timeout for long-running AI requests
|
|
experimental: {
|
|
proxyTimeout: 300000, // 300 seconds (5 minutes)
|
|
},
|
|
};
|
|
|
|
export default nextConfig; |