Skip to content

Commit 57ba2d9

Browse files
committed
Fix host for social auth link
1 parent be9b783 commit 57ba2d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/components/auth/AuthSocialButton.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ const AuthSocialButton: React.FC<AuthSocialButtonProps> = ({
5555

5656
const host =
5757
process.env.NODE_ENV === 'production'
58-
? 'https://velog.io/'
59-
: 'http://localhost:5000/';
58+
? process.env.REACT_APP_API_HOST
59+
: 'http://localhost:5000/';
6060

61-
const redirectTo = `${host}/api/v2/auth/social/redirect/${provider}`;
61+
const redirectTo = `${host}api/v2/auth/social/redirect/${provider}`;
6262

6363
return (
6464
<AuthSocialButtonBlock

0 commit comments

Comments
 (0)