[Netlify] FirebaseError: Firebase: Error (auth/invalid-api-key). ์—๋Ÿฌ ํ•ด๊ฒฐ
ยท
Netlify
๐Ÿ”ฅ ๋ฐœ์ƒํ•œ ์—๋ŸฌUncaught FirebaseError: Firebase: Error (auth/invalid-api-key).๋กœ์ปฌ์—์„œ๋Š” ์ž˜ ๋™์ž‘ํ–ˆ์ง€๋งŒ Netlify์— ๋ฐฐํฌ ํ›„ ํ™•์ธํ•ด๋ณด๋‹ˆ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ–ˆ๋‹ค. ๋ฐฐํฌํ•  ๋•Œ ์ฐธ๊ณ ํ•œ ์‚ฌ์ดํŠธ(https://create-react-app.dev/docs/deployment#netlify) ์›์ธ ๋ถ„์„ํ•ด๋‹น ์—๋Ÿฌ์— ๋Œ€ํ•ด ๊ธ€์„ ์“ด ์—ฌ๋Ÿฌ ๋ธ”๋กœ๊ทธ๋ฅผ ์ฐพ์•„์„œ ์ฝ์–ด๋ณด๋‹ˆ ๋‹ค์Œ์˜ ๊ฒฝ์šฐ์— ์ด๋Ÿฌํ•œ ์—๋Ÿฌ๊ฐ€ ๋ฐœ์ƒํ•œ๋‹ค๊ณ  ํ•œ๋‹ค..env ํŒŒ์ผ์ด ๋ฃจํŠธ์— ์—†๋Š” ๊ฒฝ์šฐAPI ํ‚ค๊ฐ€ ์ž˜๋ชป๋œ ๊ฒฝ์šฐfirebaseConfig๋ฅผ exportํ•˜๊ณ , ๋‹ค๋ฅธ JS ํŒŒ์ผ์—์„œ import ํ•  ๊ฒฝ์šฐ ๋กœ์ปฌ์—์„œ๋Š” ์ž˜ ๋™์ž‘ํ–ˆ๊ธฐ ๋•Œ๋ฌธ์— Netlify์—์„œ ๋‚ด๊ฐ€ ์„ค์ •ํ•œ ํ™˜๊ฒฝ ๋ณ€์ˆ˜๋ฅผ ์ œ๋Œ€๋กœ ์ธ์‹ํ•˜์ง€ ๋ชปํ•˜๊ณ  ์žˆ์„ ๊ฒƒ ๊ฐ™๋‹ค๊ณ  ์ƒ๊ฐ..
_์„ฑํ˜ธ_
'FirebaseError' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก