Files
ysochweb_node/next.config.ts
T
user01 46bc36a1f5 Initial commit: 용산 공중케이블 주민 안전 협의회 홈페이지
- Next.js 16 App Router + TypeScript + Tailwind CSS 4
- Prisma/SQLite 기반 공지사항·자료실·관리자·문의/제보
- 네이버 블로그 RSS 최신 글 5개 노출
- OCI 운영 배포 스크립트 및 문서
2026-10-26 00:52:53 +09:00

49 lines
1.5 KiB
TypeScript

import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
poweredByHeader: false,
compress: true,
// 업로드 경로를 런타임에 결정하다 보니 Turbopack이 프로젝트 전체를 추적합니다.
// 실제 실행에 필요 없는 소스/문서/개발 데이터는 standalone 결과에서 제외합니다.
outputFileTracingExcludes: {
"/*": [
"./docs/**/*",
"./src/**/*",
"./scripts/**/*",
"./storage/**/*",
"./prisma/dev.db",
"./README.md",
"./AGENTS.md",
"./.env",
"./.env.*",
"./Dockerfile",
"./docker-compose.yml",
// Node.js 런타임에서는 바이너리 엔진을 사용하므로 Edge용 wasm 사본은 불필요합니다.
"./node_modules/@prisma/client/runtime/*.wasm-base64.js",
"./node_modules/@prisma/client/runtime/*.wasm-base64.mjs",
],
},
experimental: {
serverActions: {
// 첨부파일 업로드(최대 10개 × 50MB)를 고려한 값입니다.
bodySizeLimit: "60mb",
},
},
async headers() {
return [
{
source: "/:path*",
headers: [
{ key: "X-Content-Type-Options", value: "nosniff" },
{ key: "X-Frame-Options", value: "SAMEORIGIN" },
{ key: "Referrer-Policy", value: "strict-origin-when-cross-origin" },
{ key: "Permissions-Policy", value: "geolocation=(), microphone=(), camera=()" },
],
},
];
},
};
export default nextConfig;