Skip to content

Commit

Permalink
chore: add old.rivet.gg support
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Jun 5, 2024
1 parent e37a37f commit ad1a2cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

let apiEndpoint = localStorage.RIVET_API_ENDPOINT || ENV_RIVET_API_ENDPOINT;
if (apiEndpoint == '__AUTO__') {
if (location.hostname.startsWith('hub.')) {
if (location.hostname.startsWith('hub.') || location.hostname == 'old.rivet.gg') {
// Connect to the corresponding API endpoint
apiEndpoint = 'https://' + location.hostname.replace('hub.', 'api.');
} else {
Expand Down

0 comments on commit ad1a2cf

Please sign in to comment.