From e35d2264a4314ce6aaa117f9b97606bcf154cc4d Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Sat, 28 Sep 2024 03:33:06 -0700 Subject: [PATCH] chore: update sandbox endpoint --- modules/deno.jsonc | 21 +++++++++++++++++++++ sandbox/client/index.js | 4 ++-- sandbox/rivet.json | 5 +---- sandbox/scripts/run_remote.sh | 2 +- 4 files changed, 25 insertions(+), 7 deletions(-) create mode 100644 modules/deno.jsonc diff --git a/modules/deno.jsonc b/modules/deno.jsonc new file mode 100644 index 00000000..58bd1a3c --- /dev/null +++ b/modules/deno.jsonc @@ -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" + } +} \ No newline at end of file diff --git a/sandbox/client/index.js b/sandbox/client/index.js index 2bdd3941..871ff87a 100644 --- a/sandbox/client/index.js +++ b/sandbox/client/index.js @@ -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 }); @@ -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", diff --git a/sandbox/rivet.json b/sandbox/rivet.json index 24acab86..379758d3 100644 --- a/sandbox/rivet.json +++ b/sandbox/rivet.json @@ -48,10 +48,7 @@ } }, "rivet": { - "registry": "local", - "config": { - "serviceTokenVariable": "RIVET_SERVICE_TOKEN" - } + "registry": "local" } } } diff --git a/sandbox/scripts/run_remote.sh b/sandbox/scripts/run_remote.sh index 818b4897..9e50ffaa 100755 --- a/sandbox/scripts/run_remote.sh +++ b/sandbox/scripts/run_remote.sh @@ -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() {