We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be9b783 commit 57ba2d9Copy full SHA for 57ba2d9
src/components/auth/AuthSocialButton.tsx
@@ -55,10 +55,10 @@ const AuthSocialButton: React.FC<AuthSocialButtonProps> = ({
55
56
const host =
57
process.env.NODE_ENV === 'production'
58
- ? 'https://velog.io/'
59
- : 'http://localhost:5000/';
+ ? process.env.REACT_APP_API_HOST
+ : 'http://localhost:5000/';
60
61
- const redirectTo = `${host}/api/v2/auth/social/redirect/${provider}`;
+ const redirectTo = `${host}api/v2/auth/social/redirect/${provider}`;
62
63
return (
64
<AuthSocialButtonBlock
0 commit comments