dm_new 추가

This commit is contained in:
2026-02-12 18:18:08 +09:00
parent d4775ff745
commit 36ce09b754
116 changed files with 5821 additions and 0 deletions
+57
View File
@@ -0,0 +1,57 @@
import type { NextConfig } from "next";
import path from "path";
const subDomain =
process.env.NEXT_PUBLIC_PROXY_HOST || "http://localhost:3000";
const nextConfig: NextConfig = {
output: "standalone",
experimental: {
proxyTimeout: 600000,
},
// 🔥 반드시 필요
webpack(config) {
config.resolve.alias = {
...(config.resolve.alias || {}),
// monorepo 구조 기준
"@common": path.resolve(__dirname, "../../packages/common"),
};
return config;
},
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*`,
},
],
fallback: [],
};
},
};
export default nextConfig;