mirror of
https://github.com/System-End/spaces.git
synced 2026-04-20 00:35:24 +00:00
Revert API Base changes
This commit is contained in:
parent
b0c8823792
commit
bf0b09ad35
1 changed files with 1 additions and 7 deletions
|
|
@ -1,10 +1,4 @@
|
|||
export function getApiBase() {
|
||||
if (typeof window !== 'undefined' && window.location &&
|
||||
(window.location.hostname === 'localhost' || window.location.hostname.includes('github.dev'))) {
|
||||
return `${window.location.protocol}//${window.location.host}/api/v1`;
|
||||
}
|
||||
return 'https://t0080w08wcockgs44ws8w880.b.selfhosted.hackclub.com/api/v1';
|
||||
}
|
||||
export const API_BASE = 'https://t0080w08wcockgs44ws8w880.b.selfhosted.hackclub.com/api/v1';
|
||||
|
||||
export const ERROR_MESSAGES = {
|
||||
NETWORK_ERROR: 'Network error. Please try again.',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue