Fix: OAuth 연결 Url 수정
This commit is contained in:
parent
70b6f26b2b
commit
e2ea56375e
@ -7,7 +7,7 @@ import { fetchProfileApi, reissueTokenApi } from '@/api/authApi';
|
|||||||
import { SuccessResponse, MemberResponseDTO, CustomError } from '@/types';
|
import { SuccessResponse, MemberResponseDTO, CustomError } from '@/types';
|
||||||
import { AxiosError } from 'axios';
|
import { AxiosError } from 'axios';
|
||||||
|
|
||||||
const DOMAIN = 'https://j11s002.p.ssafy.io';
|
const BASE_URL = import.meta.env.VITE_API_URL;
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
@ -33,7 +33,7 @@ export default function Home() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleGoogleSignIn = () => {
|
const handleGoogleSignIn = () => {
|
||||||
window.location.href = `${DOMAIN}/api/login/oauth2/authorization/google`;
|
window.location.href = `${BASE_URL}/login/oauth2/authorization/google`;
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleStart = () => {
|
const handleStart = () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user