import type { NextConfig } from "next"; // 백엔드 URL 설정 // 로컬: http://localhost:4000 // Docker: http://host.docker.internal:4000 const BACKEND_URL = process.env.BACKEND_INTERNAL_URL || 'http://localhost:4000'; const nextConfig: NextConfig = { eslint: { ignoreDuringBuilds: true, }, typescript: { ignoreBuildErrors: true, }, async rewrites() { return [ { source: '/backend/api/:path*', destination: `${BACKEND_URL}/:path*`, }, ]; }, }; export default nextConfig;