diff --git a/src/components/CheckDuplicateEmail.tsx b/src/components/CheckDuplicateEmail.tsx index 4dcd923..8fb51e9 100644 --- a/src/components/CheckDuplicateEmail.tsx +++ b/src/components/CheckDuplicateEmail.tsx @@ -15,7 +15,7 @@ const CheckDuplicateEmail: React.FC = ({ value, text, handleChange const checkEmail = async () => { try { - const response = await axios.get(`${API_BASE_URL}/api/v1/user/email/${value}`); + const response = await axios.get(`/api/v1/user/email/${value}`); if (response.data) { toast({ title: "가입 가능한 이메일입니다.", diff --git a/src/pages/MainPage/components/Aquarium.tsx b/src/pages/MainPage/components/Aquarium.tsx index d6571fb..d4324d0 100644 --- a/src/pages/MainPage/components/Aquarium.tsx +++ b/src/pages/MainPage/components/Aquarium.tsx @@ -47,7 +47,7 @@ const Aquarium: React.FC = ({ children }) => { useEffect(() => { const fetchFishData = async () => { try { - // const response = await axios.get(`${API_BASE_URL}/api/v1/pokedex`, + // const response = await axios.get(`/api/v1/pokedex`, // { headers: { // Authorization: `Bearer ${accessToken}`, // Bearer 토큰 추가 // }, diff --git a/src/pages/Start/SignupPage.tsx b/src/pages/Start/SignupPage.tsx index c627767..55277f9 100644 --- a/src/pages/Start/SignupPage.tsx +++ b/src/pages/Start/SignupPage.tsx @@ -24,7 +24,7 @@ const SignupPage: React.FC = () => { const handleSignup = async () => { try { - const response = await axios.post(`${API_BASE_URL}/api/v1/user/signup`, { + const response = await axios.post(`/api/v1/user/signup`, { email, nickName, password,