decla-red/frontend/src/scripts/configuration.ts
Andras Schmelczer 653687278f
All checks were successful
Build & deploy / Build & publish server image (pull_request) Has been skipped
Build & deploy / Build & deploy website (pull_request) Successful in 1m2s
rename
2026-09-18 21:23:47 +01:00

9 lines
352 B
TypeScript

const productionServers: Array<string> = ['https://doppler.schmelczer.dev'];
const isDevelopment =
typeof location !== 'undefined' &&
(location.hostname === 'localhost' || location.hostname === '127.0.0.1');
export const servers: Array<string> = isDevelopment
? [`http://${location.hostname}:3000`, ...productionServers]
: productionServers;