From 6afa3911b7bebbbdac425a6153d74bb2b61e6263 Mon Sep 17 00:00:00 2001 From: iqbalpa Date: Sun, 14 Jul 2024 07:41:46 +0700 Subject: [PATCH] fix: 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 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;