Revert API Base changes

This commit is contained in:
Charmunk 2025-11-10 09:34:13 -05:00 committed by GitHub
parent b0c8823792
commit bf0b09ad35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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.',