Added API_URL to client env
This commit is contained in:
@@ -6,7 +6,7 @@ import { objectToQueryString } from 'shared/utils/url';
|
||||
import { getStoredAuthToken, removeStoredAuthToken } from 'shared/utils/authToken';
|
||||
|
||||
const defaults = {
|
||||
baseURL: `http://localhost:${process.env.API_PORT || 3000}`,
|
||||
baseURL: process.env.API_URL || 'http://localhost:3000',
|
||||
headers: () => ({
|
||||
'Content-Type': 'application/json',
|
||||
Authorization: getStoredAuthToken() ? `Bearer ${getStoredAuthToken()}` : undefined,
|
||||
|
||||
Reference in New Issue
Block a user