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