Update config.ts

This commit is contained in:
Nathan 2026-03-17 14:03:49 -04:00
parent c1a9614bbd
commit b3cdfd7ade

View file

@ -1,4 +1,8 @@
export const API_URL = import.meta.env.VITE_API_URL || 'http://localhost:3000'; export const API_URL =
import.meta.env.VITE_API_URL ||
(typeof window !== 'undefined' && window.location.hostname !== 'localhost'
? 'https://api.scraps.hackclub.com'
: 'http://localhost:3000');
export interface ServerConfig { export interface ServerConfig {
scrapsPerDollar: number; scrapsPerDollar: number;