Back up recovered AnchorHost frontend

This commit is contained in:
wfalkowski committed 2026-10-18 19:29:11 +00:00
commit 4ce031f667
72 files changed
+37643

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
/**
* API / WebSocket base URLs for local dev and production.
* Set REACT_APP_API_URL and REACT_APP_WS_URL in .env (see .env.example).
*/
const trimTrailingSlash = (url) => (url || '').replace(/\/$/, '');
export const API_BASE_URL = trimTrailingSlash(
process.env.REACT_APP_API_URL || 'https://anchorhost.eu'
);
export const WS_BASE_URL = trimTrailingSlash(
process.env.REACT_APP_WS_URL || 'wss://anchorhost.eu/ws'
);
export const SITE_BASE_URL = trimTrailingSlash(
process.env.REACT_APP_SITE_URL || API_BASE_URL
);