Files
frontend/apps/fo/next.config.ts
T
2025-10-22 12:56:42 +09:00

50 lines
1.2 KiB
TypeScript

import type { NextConfig } from "next";
const subDomain =
process.env.NEXT_PUBLIC_PROXY_HOST || "http://localhost:3000";
const nextConfig: NextConfig = {
output: "standalone",
experimental: {
proxyTimeout: 600000, // 10분 (밀리초 단위)
},
async rewrites() {
return {
beforeFiles: [
{
source: "/_next/static/:path*",
destination: `${subDomain}/_next/static/:path*`,
has: [
{
type: "header",
key: "referer",
value: "(.*)/pst(.*)",
},
],
},
],
afterFiles: [
{
source: "/sewerage-service/:path*",
destination: `${subDomain}/sewerage-service/:path*`,
},
{
source: "/reuse-service/:path*",
destination: `${subDomain}/reuse-service/:path*`,
},
{
source: "/operation-service/:path*",
destination: `${subDomain}/operation-service/:path*`,
},
{
source: "/ngii-server/:path*",
destination: `${subDomain}/ngii-server/:path*`,
},
],
fallback: [],
};
},
};
export default nextConfig;