Skip to content

Commit

Permalink
fix: fix base-URL (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
GaoNeng-wWw authored Nov 26, 2023
1 parent 76c6a7f commit 50e1c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import axios, { AxiosError } from "axios";
import cookie from 'react-cookies';

export const http = axios.create({
baseURL: '/api',
baseURL: process.env.NODE_ENV === 'development' ? '/api' : process.env.NEXT_PUBLIC_API_SERVER,
timeout: 6000,
withCredentials: true,
});
Expand Down

0 comments on commit 50e1c5e

Please sign in to comment.