Split summary-server constant

This commit is contained in:
Pieter Vander Vennet 2024-06-12 15:03:10 +02:00
parent d434ed0492
commit 8f5be4f742
4 changed files with 5 additions and 3 deletions

View file

@ -28,7 +28,7 @@ async function timeout(timeMS: number): Promise<{ layers: string[] }> {
async function getAvailableLayers(): Promise<Set<string>> {
try {
const host = new URL(Constants.VectorTileServer).host
const host = new URL(Constants.SummaryServer).host
const status: { layers: string[] } = await Promise.any([
Utils.downloadJson<{layers}>("https://" + host + "/summary/status.json"),
timeout(2500),