From 74c286034299d2721207e539765a2794dbbd8e3d Mon Sep 17 00:00:00 2001 From: bicochan Date: Tue, 1 Jul 2025 09:16:55 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20'/pst'=20=EA=B2=BD=EB=A1=9C=20'/cms'?= =?UTF-8?q?=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/common/features/next.config.ts | 13 ++++++++++++- apps/cs/next.config.ts | 6 +++--- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/apps/common/features/next.config.ts b/apps/common/features/next.config.ts index cb651cdc0..34965cf32 100644 --- a/apps/common/features/next.config.ts +++ b/apps/common/features/next.config.ts @@ -1,5 +1,16 @@ import type { NextConfig } from "next"; -const nextConfig: NextConfig = {}; +const nextConfig: NextConfig = { + async rewrites() { + return { + afterFiles: [ + { + source: "/cms/:path*", + destination: "/:path*", + }, + ], + }; + }, +}; export default nextConfig; diff --git a/apps/cs/next.config.ts b/apps/cs/next.config.ts index 3b3038b09..ad1ec7949 100644 --- a/apps/cs/next.config.ts +++ b/apps/cs/next.config.ts @@ -15,15 +15,15 @@ const nextConfig: NextConfig = { { type: "header", key: "referer", - value: "(.*)/pst(.*)", + value: "(.*)/cms(.*)", }, ], }, ], afterFiles: [ { - source: "/pst/:path*", - destination: `${subDomain}/pst/:path*`, + source: "/cms/:path*", + destination: `${subDomain}/cms/:path*`, }, ], fallback: [],