Back up recovered AnchorHost frontend
This commit is contained in:
commit
4ce031f667
72 files changed
+37643
No files matched your search
@@ -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
|
||||
);
|
||||
Reference in new issue
Block a user