Files
genome2025/frontend/next.config.ts
2025-12-15 14:41:47 +09:00

26 lines
533 B
TypeScript

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;