-
Notifications
You must be signed in to change notification settings - Fork 4
0912_개인회고록
LikeFireAndSky edited this page Sep 11, 2023
·
3 revisions
- .env.development.local (1순위 적용)
- .env.local (2순위 적용)
- .env (3순위 적용)
- react에서 환경변수 사용할 때 앞에 REACT_APP_을 붙여줘야 함
//.env.local
REACT_APP_APIKEY = "thisisnewapikey991234"
//app.tsx
환경변수 = process.env.REACT_APP_APIKEY
✨ 정리하자면 무조건 REACT_APP_이 필수적으로 붙어야 한다.