Skip to content

Commit

Permalink
feat: update base url
Browse files Browse the repository at this point in the history
  • Loading branch information
iqbalpa committed Jul 14, 2024
1 parent ee8d26d commit 2c11d72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/auth.api.ts
Original file line number Diff line number Diff line change
@@ -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`, {
Expand Down
2 changes: 1 addition & 1 deletion src/api/watchlist.api.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 2c11d72

Please sign in to comment.