개발용 설정
This commit is contained in:
22
frontend/next.config.ts.dev
Normal file
22
frontend/next.config.ts.dev
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { NextConfig } from "next";
|
||||
|
||||
// Next.js 핵심 설정 파일, Next.js가 시작할 때 이 파일을 찾아서 읽음
|
||||
// 여기에 Next.js 설정 옵션을 정의할 수 있음
|
||||
const nextConfig: NextConfig = {
|
||||
eslint: {
|
||||
ignoreDuringBuilds: true, // 빌드 시 ESLint warning 무시
|
||||
},
|
||||
typescript: {
|
||||
ignoreBuildErrors: true, // 빌드 시 TypeScript 에러 무시 (임시)
|
||||
},
|
||||
async rewrites() {
|
||||
return [
|
||||
{
|
||||
source: '/backend/api/:path*', // /api가 붙은 모든 요청
|
||||
destination: 'http://192.168.11.249:4000/:path*', // 백엔드 API로 요청
|
||||
},
|
||||
];
|
||||
},
|
||||
};
|
||||
|
||||
export default nextConfig;
|
||||
Reference in New Issue
Block a user