49 lines
980 B
TypeScript
49 lines
980 B
TypeScript
import type { NextConfig } from "next";
|
|
|
|
const subDomain =
|
|
process.env.NEXT_PUBLIC_SUB_DOMAIN || "http://localhost:13000";
|
|
|
|
const nextConfig: NextConfig = {
|
|
experimental: {
|
|
proxyTimeout: 600000,
|
|
},
|
|
// output: "standalone", // Windows symlink 권한 문제로 비활성화
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
typescript: {
|
|
ignoreBuildErrors: true,
|
|
},
|
|
logging: {
|
|
fetches: {
|
|
fullUrl: true,
|
|
},
|
|
},
|
|
async rewrites() {
|
|
return {
|
|
beforeFiles: [
|
|
{
|
|
source: "/_next/static/:path*",
|
|
destination: `${subDomain}/_next/static/:path*`,
|
|
has: [
|
|
{
|
|
type: "header",
|
|
key: "referer",
|
|
value: "(.*)/cms(.*)",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
afterFiles: [
|
|
{
|
|
source: "/cms/:path*",
|
|
destination: `${subDomain}/cms/:path*`,
|
|
},
|
|
],
|
|
fallback: [],
|
|
};
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|