Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update sandbox endpoint #588

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading