add fronted docker

This commit is contained in:
jaehwang committed 2026-09-08 15:00:42 +09:00
1 parent 5cd5ec5649
commit a18f7a5c8b
14 files changed
+124 -24

No files matched your search

+5 -7
View File
@@ -1,13 +1,11 @@
import type { NextConfig } from "next";
// 컨테이너에서는 서비스명(http://backend:30101)으로, 로컬에서는 localhost로 붙는다
const API = process.env.API_ORIGIN ?? "http://localhost:30101";
// /api/* 프록시는 proxy.ts 에 있다 — 목적지를 런타임에 정해야 해서다
const nextConfig: NextConfig = {
async rewrites() {
return [
{ source: "/api/:path*", destination: `${API}/api/:path*` },
];
experimental: {
// 기본 10MB에서는 포스터 업로드가 잘려 백엔드가 깨진 multipart를 받는다.
// 백엔드 상한이 30MB라 multipart 오버헤드만큼 여유를 둔다
proxyClientMaxBodySize: "32mb",
},
};