fix: 침입수 분석, RDII 분석 에러 수정 (middleware proxy Timeout 설정 추가)

This commit is contained in:
swcho
2025-10-21 18:56:35 +09:00
parent 02f51a045d
commit c3e4273d0c
4 changed files with 11 additions and 1 deletions
+3
View File
@@ -5,6 +5,9 @@ const subDomain =
const nextConfig: NextConfig = {
output: "standalone",
experimental: {
proxyTimeout: 600000, // 10분 (밀리초 단위)
},
async rewrites() {
return {
beforeFiles: [
+2 -1
View File
@@ -123,7 +123,8 @@ export function middleware(req: NextRequest) {
const decodedQuery = toDecodedQueryString(searchParams);
const newUrl = `${SEWERAGE_API_URL}${pathname}${decodedQuery ? `?${decodedQuery}` : ""}`;
console.log(`[Middleware] Rewriting from '${pathname}' path to: ${newUrl}`);
return rewriteWith(newUrl, req, true);
const rewriteRequest = rewriteWith(newUrl, req, true);
return rewriteRequest;
}
return NextResponse.next();
+3
View File
@@ -2,6 +2,9 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = {
output: "standalone",
experimental: {
proxyTimeout: 600000, // 10분 (밀리초 단위)
},
typescript: {
ignoreBuildErrors: true, // 이 줄 추가
},
+3
View File
@@ -5,6 +5,9 @@ const subDomain =
const nextConfig: NextConfig = {
output: "standalone",
experimental: {
proxyTimeout: 600000, // 10분 (밀리초 단위)
},
async rewrites() {
return {
beforeFiles: [