felsökning docker

This commit is contained in:
2026-06-02 01:40:37 +02:00
parent d4a246eb8e
commit 79edebe632
+5 -1
View File
@@ -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() {
return localStorage.getItem('dns_token');