From 2c11d7270d82a02853a1af88c4ead95edb97e379 Mon Sep 17 00:00:00 2001 From: iqbalpa Date: Sun, 14 Jul 2024 07:14:38 +0700 Subject: [PATCH] feat: update base url --- src/api/auth.api.ts | 2 +- src/api/watchlist.api.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;