From 0bed8e47aefbc5ba7fdd899351bead70bf881881 Mon Sep 17 00:00:00 2001 From: recoma Date: Mon, 16 Nov 2026 11:45:22 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=B9=B4=EC=B9=B4=EC=98=A4?= =?UTF-8?q?=ED=86=A1=20=EA=B3=B5=EC=9C=A0=20ID=20=ED=99=98=EA=B2=BD?= =?UTF-8?q?=EB=B3=80=EC=88=98=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 1 + src/app/components/common/buttons/KakaoShareButton.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9fb14ee..7641f42 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ | `DATA_API_BASE_URL` | O | 코스 데이터(JSON)가 있는 S3 주소. 끝에 `/`를 붙이지 않습니다. | | `NEXT_PUBLIC_NAVER_MAP_CLIENT_ID` | O | Naver Map API 클라이언트 ID | | `NEXT_PUBLIC_KAKAO_JS_KEY` | O | 카카오 디벨로퍼스 JS Key | +| `NEXT_PUBLIC_KAKAO_SHARE_COURSE_DETAIL_ID` | O | 카카오톡 공유 템플릿 ID - 코스상세정보 | 코스 페이지는 SSG로 생성되므로, 프로덕션에서는 이 값이 **빌드할 때** 사용됩니다. 값이 없으면 빌드가 실패합니다. 개발 서버(`npm run dev`)에서는 코스 페이지에 접속할 때마다 사용되므로 로컬 개발에도 필요합니다. diff --git a/src/app/components/common/buttons/KakaoShareButton.tsx b/src/app/components/common/buttons/KakaoShareButton.tsx index 5e3cf9f..ba33980 100644 --- a/src/app/components/common/buttons/KakaoShareButton.tsx +++ b/src/app/components/common/buttons/KakaoShareButton.tsx @@ -28,7 +28,7 @@ export function CourseDetailKakaoShareButton(params: CourseDetailKakaoSharedButt } window.Kakao.Share.sendCustom({ - templateId: 138987, + templateId: Number(process.env.NEXT_PUBLIC_KAKAO_SHARE_COURSE_DETAIL_ID), templateArgs: { introduce: params.description, difficulty: difficulty.label,