mirror of
https://github.com/System-End/scraps.git
synced 2026-04-19 16:28:20 +00:00
Update config.ts
This commit is contained in:
parent
c1a9614bbd
commit
b3cdfd7ade
1 changed files with 5 additions and 1 deletions
|
|
@ -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 {
|
||||
scrapsPerDollar: number;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue