Skip to content

Commit

Permalink
chore: update sandbox endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Sep 30, 2024
1 parent 566b0fe commit e35d226
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 7 deletions.
21 changes: 21 additions & 0 deletions modules/deno.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// This file is auto-generated by the Rivet (https://rivet.gg) build system.
//
// Do not edit this file directly.

{
"lint": {
"rules": {
"exclude": [
"no-empty-interface",
"no-explicit-any",
"require-await"
]
}
},
"fmt": {
"useTabs": true
},
"imports": {
"cloudflare:workers": "npm:@cloudflare/workers-types"
}
}
4 changes: 2 additions & 2 deletions sandbox/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Backend } from './dist/sdk.mjs';

const urlParams = new URLSearchParams(window.location.search);
const environment = urlParams.get('env') || 'local';
const API_ENDPOINT = environment === 'remote' ? "https://sandbox--staging.backend.rivet.gg" : "http://localhost:6420";
const API_ENDPOINT = environment === 'remote' ? "https://modules-sand-m4z.backend.staging2.gameinc.io" : "http://localhost:6420";

const backend = new Backend({ endpoint: API_ENDPOINT });

Expand Down Expand Up @@ -35,7 +35,7 @@ window.findOrCreateLobby = async function() {
},
});
} else {
const region = "atl";
const region = "lnd-atl";
const tags = {"foo": "bar"};
res = await backend.lobbies.findOrCreate({
version: "2024.09.18-2",
Expand Down
5 changes: 1 addition & 4 deletions sandbox/rivet.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,7 @@
}
},
"rivet": {
"registry": "local",
"config": {
"serviceTokenVariable": "RIVET_SERVICE_TOKEN"
}
"registry": "local"
}
}
}
2 changes: 1 addition & 1 deletion sandbox/scripts/run_remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -euo pipefail

export RIVET_BACKEND_ENDPOINT="https://sandbox--staging.backend.rivet.gg"
export BACKEND_ENDPOINT="https://modules-sand-m4z.backend.staging2.gameinc.io"

# Function to clean up background processes
cleanup() {
Expand Down

0 comments on commit e35d226

Please sign in to comment.