From 81fc947c9dac867ca03d9fbcc7baf65a517dc3e9 Mon Sep 17 00:00:00 2001 From: bicochan Date: Mon, 20 Jul 2026 13:49:22 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20as,=20st=20=EC=95=B1=20standalone=20?= =?UTF-8?q?=ED=99=9C=EC=84=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/as/next.config.ts | 1 + apps/st/next.config.ts | 74 +++++++++++++++++++++--------------------- 2 files changed, 38 insertions(+), 37 deletions(-) diff --git a/apps/as/next.config.ts b/apps/as/next.config.ts index 8864de0e7..d3afd4d70 100644 --- a/apps/as/next.config.ts +++ b/apps/as/next.config.ts @@ -1,6 +1,7 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { + output: "standalone", reactStrictMode: true, transpilePackages: ["@common/assets"], }; diff --git a/apps/st/next.config.ts b/apps/st/next.config.ts index a0adf6946..743a29bdd 100644 --- a/apps/st/next.config.ts +++ b/apps/st/next.config.ts @@ -1,47 +1,47 @@ import type { NextConfig } from "next"; const subDomain = - process.env.NEXT_PUBLIC_SUB_DOMAIN || "http://localhost:13000"; + process.env.NEXT_PUBLIC_SUB_DOMAIN || "http://localhost:13000"; const nextConfig: NextConfig = { - // output: "standalone", - async headers() { - return [ - { - source: "/(.*)", - headers: [ - { - key: "Content-Security-Policy", - value: "img-src 'self' data: https: blob:;", - }, - ], - }, - ]; - }, - async rewrites() { - return { - beforeFiles: [ - { - source: "/_next/static/:path*", - destination: `${subDomain}/_next/static/:path*`, - has: [ + output: "standalone", + async headers() { + return [ { - type: "header", - key: "referer", - value: "(.*)/cms(.*)", + source: "/(.*)", + headers: [ + { + key: "Content-Security-Policy", + value: "img-src 'self' data: https: blob:;", + }, + ], }, - ], - }, - ], - afterFiles: [ - { - source: "/cms/:path*", - destination: `${subDomain}/cms/:path*`, - }, - ], - fallback: [], - }; - }, + ]; + }, + 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;