From 93c99105c004274970368f876e94bebd2254a641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B6=8C=ED=98=81=EC=84=B1?= Date: Fri, 23 Jan 2026 16:46:31 +0900 Subject: [PATCH] =?UTF-8?q?feat(WEB):=20=EC=95=B1=20=EC=9D=B4=EB=A6=84=20S?= =?UTF-8?q?AM=EC=9C=BC=EB=A1=9C=20=EB=B3=80=EA=B2=BD=20=EB=B0=8F=20?= =?UTF-8?q?=ED=99=98=EA=B2=BD=EB=B3=84=20=EC=A0=91=EB=91=90=EC=82=AC=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ERP System → SAM - 내 손안의 대시보드 - 환경별 접두사: [L] 로컬, [D] 개발, 없음 운영 - i18n appName 업데이트 (en/ko) --- src/app/[locale]/layout.tsx | 23 +++++++++++++++++------ src/messages/en.json | 2 +- src/messages/ko.json | 2 +- 3 files changed, 19 insertions(+), 8 deletions(-) diff --git a/src/app/[locale]/layout.tsx b/src/app/[locale]/layout.tsx index dafb18b3..296187f0 100644 --- a/src/app/[locale]/layout.tsx +++ b/src/app/[locale]/layout.tsx @@ -17,12 +17,23 @@ const pretendard = localFont({ weight: '100 900', // Variable 폰트 weight 범위 }); +// 🏷️ 환경별 접두사 +const getEnvPrefix = () => { + const env = process.env.NEXT_PUBLIC_APP_ENV; + if (env === 'local') return '[L]'; + if (env === 'development') return '[D]'; + return ''; +}; + +const APP_NAME = 'SAM'; +const APP_TITLE = `${getEnvPrefix()}${APP_NAME} - 내 손안의 대시보드`; + export const metadata: Metadata = { title: { - default: "ERP System - Enterprise Resource Planning", - template: "%s | ERP System" + default: APP_TITLE, + template: `%s | ${getEnvPrefix()}${APP_NAME} Smart Automation Management` }, - description: "Multi-tenant Enterprise Resource Planning System for SME businesses", + description: "내 손안의 대시보드 SAM - 중소기업을 위한 스마트 경영 시스템", robots: { index: false, follow: false, @@ -42,9 +53,9 @@ export const metadata: Metadata = { openGraph: { type: 'website', locale: 'ko_KR', - siteName: 'ERP System', - title: 'Enterprise Resource Planning System', - description: 'Multi-tenant ERP System for SME businesses', + siteName: APP_NAME, + title: APP_TITLE, + description: '내 손안의 대시보드 SAM - 중소기업을 위한 스마트 경영 시스템', }, // Prevent caching of sensitive pages other: { diff --git a/src/messages/en.json b/src/messages/en.json index 518c08a7..022e1f85 100644 --- a/src/messages/en.json +++ b/src/messages/en.json @@ -1,6 +1,6 @@ { "common": { - "appName": "ERP System", + "appName": "SAM", "welcome": "Welcome", "loading": "Loading...", "save": "Save", diff --git a/src/messages/ko.json b/src/messages/ko.json index 7cbf672a..0da09ed3 100644 --- a/src/messages/ko.json +++ b/src/messages/ko.json @@ -1,6 +1,6 @@ { "common": { - "appName": "ERP 시스템", + "appName": "SAM", "welcome": "환영합니다", "loading": "로딩 중...", "save": "저장",