Skip to content

Commit bcacd92

Browse files
committed
refac: 백엔드 url 하드코딩 수정
1 parent 3c507d0 commit bcacd92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/widgets/main/ui/LoginModal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ interface LoginModalProps {
1010

1111
const LoginModal = ({ onClose }: LoginModalProps) => {
1212
const kakaoLogin = () => {
13-
window.location.href = 'http://ec2-3-35-48-123.ap-northeast-2.compute.amazonaws.com:8080/oauth2/authorization/kakao';
13+
window.location.href = `${import.meta.env.VITE_API_BASE_URL}/oauth2/authorization/kakao`;
1414
};
1515
const gooleLogin = () => {
16-
window.location.href = 'http://ec2-3-35-48-123.ap-northeast-2.compute.amazonaws.com:8080/oauth2/authorization/google';
17-
}
16+
window.location.href = `${import.meta.env.VITE_API_BASE_URL}/oauth2/authorization/google`;
17+
};
1818
return (
1919
<motion.div
2020
initial={{ y: '-100vh', opacity: 0 }}

0 commit comments

Comments
 (0)