Skip to content

Commit

Permalink
chore: add api for old.eg.rivet.gg
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Jun 10, 2024
1 parent e2bf2e7 commit c9d6aa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
Expand Down

0 comments on commit c9d6aa1

Please sign in to comment.