Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`)에서는 코스 페이지에 접속할 때마다 사용되므로 로컬 개발에도 필요합니다.
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/common/buttons/KakaoShareButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Loading