From c9d6aa1505389da48eb4db6b2f29d03c83339c2f Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Mon, 10 Jun 2024 10:22:39 -0700 Subject: [PATCH] chore: add api for old.eg.rivet.gg --- src/config.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.ts b/src/config.ts index 877b0f9b..943fbd87 100644 --- a/src/config.ts +++ b/src/config.ts @@ -7,8 +7,8 @@ let apiEndpoint = localStorage.RIVET_API_ENDPOINT || ENV_RIVET_API_ENDPOINT; if (apiEndpoint == '__AUTO__') { if (location.hostname == 'old.rivet.gg' || location.hostname == 'old.hub-3av.pages.dev') { apiEndpoint = 'https://api.rivet.gg'; - } else if (location.hostname == 'old.eg.rivet.gg') { - apiEndpoint = 'https://api.rivet.gg'; + } else if (location.hostname == 'eg.rivet.gg') { + apiEndpoint = 'https://api.eg.rivet.gg'; } else if (location.hostname.startsWith('hub.')) { // Connect to the corresponding API endpoint apiEndpoint = 'https://' + location.hostname.replace('hub.', 'api.');