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 6bac59f commit e2bf2e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +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.startsWith('hub.')) {
// Connect to the corresponding API endpoint
apiEndpoint = 'https://' + location.hostname.replace('hub.', 'api.');
Expand Down

0 comments on commit e2bf2e7

Please sign in to comment.