--- next.config.ts
+++ next.config.ts
... | ... | @@ -1,5 +1,5 @@ |
| 1 |
-import path from "node:path"; |
|
| 2 | 1 |
import type { NextConfig } from "next";
|
| 2 |
+import path from "node:path"; |
|
| 3 | 3 |
|
| 4 | 4 |
// 다층 캐시·SEO 차단(§4)의 응답 헤더 계층. immutable 정적 자산(_next/static, _next/image)은 |
| 5 | 5 |
// Next.js가 자체적으로 Cache-Control을 강제하므로 대상에서 제외해 자산 캐싱을 보존한다. |
... | ... | @@ -21,10 +21,12 @@ |
| 21 | 21 |
|
| 22 | 22 |
const nextConfig: NextConfig = {
|
| 23 | 23 |
experimental: {
|
| 24 |
+ proxyClientMaxBodySize: '200mb', |
|
| 24 | 25 |
serverActions: {
|
| 25 | 26 |
// 이슈: 앱의 파일 상한(첨부 10MB)보다 반드시 커야 한다. 같거나 작으면 초과 파일이 413으로 |
| 26 | 27 |
// 잘려 액션이 실행되지 않고, 우리가 준비한 "10MB 이하만" 메시지 대신 처리 불가한 오류가 뜬다. |
| 27 |
- bodySizeLimit: '20mb', |
|
| 28 |
+ bodySizeLimit: '200mb', |
|
| 29 |
+ |
|
| 28 | 30 |
}, |
| 29 | 31 |
}, |
| 30 | 32 |
|
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?