Skip to content

Commit

Permalink
refactor: url 환경변수화
Browse files Browse the repository at this point in the history
  • Loading branch information
xilucks committed Jul 21, 2024
1 parent 8d7503c commit 0b898f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .env.template
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
DATABASE_URL=
DATABASE_URL=
NEXT_PUBLIC_KAKAOMAP_BASE_URL =
NEXT_PUBLIC_DAUMCDN_POSTOCDE_URL =
NEXT_PUBLIC_KAKAO_MAP_API_KEY=
4 changes: 2 additions & 2 deletions src/app/(playground)/playground/map/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ export default function KaKaoMapPageLayout({
<Script
strategy="beforeInteractive"
type="text/javascript"
src={"//t1.daumcdn.net/mapjsapi/bundle/postcode/prod/postcode.v2.js"}
src={`${process.env.NEXT_PUBLIC_DAUMCDN_POSTOCDE_URL}`}
/>
<Script
strategy="beforeInteractive"
type="text/javascript"
src={`//dapi.kakao.com/v2/maps/sdk.js?appkey=${process.env.NEXT_PUBLIC_KAKAO_MAP_API_KEY}&libraries=services&autoload=false`}
src={`${process.env.NEXT_PUBLIC_KAKAOMAP_BASE_URL}?appkey=${process.env.NEXT_PUBLIC_KAKAO_MAP_API_KEY}&libraries=services&autoload=false`}
/>
{children}
</>
Expand Down

0 comments on commit 0b898f4

Please sign in to comment.