felsökning docker
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
const BASE = (process.env.REACT_APP_API_URL || 'http://localhost:3001') + '/api';
|
// In development REACT_APP_API_URL points directly to the backend.
|
||||||
|
// In Docker, leave it unset — nginx proxies /api to the backend container.
|
||||||
|
const BASE = process.env.REACT_APP_API_URL
|
||||||
|
? process.env.REACT_APP_API_URL + '/api'
|
||||||
|
: '/api';
|
||||||
|
|
||||||
export function getToken() {
|
export function getToken() {
|
||||||
return localStorage.getItem('dns_token');
|
return localStorage.getItem('dns_token');
|
||||||
|
|||||||
Reference in New Issue
Block a user