diff --git a/src/api/auth.api.ts b/src/api/auth.api.ts index bcf5250..2eece31 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: string = 'http://localhost:3000'; +const BASE_URL = process.env.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 245baa0..b5fa1c6 100644 --- a/src/api/watchlist.api.ts +++ b/src/api/watchlist.api.ts @@ -1,6 +1,6 @@ import axios from 'axios'; -const BASE_URL: string = 'http://localhost:3000'; +const BASE_URL = process.env.BASE_URL; interface Movie { id: number;