diff --git a/src/api/auth.api.ts b/src/api/auth.api.ts index 2eece31..e83c991 100644 --- a/src/api/auth.api.ts +++ b/src/api/auth.api.ts @@ -1,7 +1,7 @@ import axios from 'axios'; import { SignInRequest, SignUpRequest } from '@/constant/auth.constant'; -const BASE_URL = process.env.BASE_URL; +const BASE_URL = process.env.NEXT_PUBLIC_BASE_URL; export const signup = async (data: SignUpRequest) => { let res = await axios.post(`${BASE_URL}/auth/signup`, { diff --git a/src/api/watchlist.api.ts b/src/api/watchlist.api.ts index b5fa1c6..fe6d1ca 100644 --- a/src/api/watchlist.api.ts +++ b/src/api/watchlist.api.ts @@ -1,6 +1,6 @@ import axios from 'axios'; -const BASE_URL = process.env.BASE_URL; +const BASE_URL = process.env.NEXT_PUBLIC_BASE_URL; interface Movie { id: number;