Skip to content

Commit

Permalink
Refactor: API KEY 환경변수를 사용하다
Browse files Browse the repository at this point in the history
  • Loading branch information
kikiyeom committed Mar 8, 2024
1 parent 7a00c91 commit e761ec6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
BASE_URL=
KAKAO_KEY=
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const ScheduleTemplate = () => {
method: 'GET',
headers: {
'Content-Type': 'application/json',
Authorization: 'KakaoAK cc4af66dc10aa1a20830f3cc62c40a87',
Authorization: `KakaoAK ${process.env.KAKAO_KEY}`,
},
});
const json = await res.json();
Expand Down

0 comments on commit e761ec6

Please sign in to comment.