diff --git a/sandbox/client/index.js b/sandbox/client/index.js index 2973f200..2bdd3941 100644 --- a/sandbox/client/index.js +++ b/sandbox/client/index.js @@ -3,8 +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-brq--staging.backend.nathan16.gameinc.io" : "http://localhost:6420"; -const API_ENDPOINT = environment === 'remote' ? "https://unity-demo-c8y.backend.nathan16.gameinc.io" : "http://localhost:6420"; +const API_ENDPOINT = environment === 'remote' ? "https://sandbox--staging.backend.rivet.gg" : "http://localhost:6420"; const backend = new Backend({ endpoint: API_ENDPOINT }); @@ -39,7 +38,7 @@ window.findOrCreateLobby = async function() { const region = "atl"; const tags = {"foo": "bar"}; res = await backend.lobbies.findOrCreate({ - version: "2024.08.14-4", + version: "2024.09.18-2", regions: [region], tags, players: [{}], diff --git a/sandbox/deno.lock b/sandbox/deno.lock index 43be2988..968de913 100644 --- a/sandbox/deno.lock +++ b/sandbox/deno.lock @@ -5,6 +5,7 @@ "jsr:@std/assert": "jsr:@std/assert@1.0.5", "jsr:@std/collections": "jsr:@std/collections@1.0.6", "jsr:@std/internal@^1.0.3": "jsr:@std/internal@1.0.3", + "jsr:@std/path": "jsr:@std/path@1.0.6", "npm:drizzle-orm@0.33.0": "npm:drizzle-orm@0.33.0_pg@8.12.0", "npm:pg@8.12.0": "npm:pg@8.12.0" }, @@ -20,6 +21,9 @@ }, "@std/internal@1.0.3": { "integrity": "208e9b94a3d5649bd880e9ca38b885ab7651ab5b5303a56ed25de4755fb7b11e" + }, + "@std/path@1.0.6": { + "integrity": "ab2c55f902b380cf28e0eec501b4906e4c1960d13f00e11cfbcd21de15f18fed" } }, "npm": { diff --git a/sandbox/rivet.json b/sandbox/rivet.json index 9ad7bab0..24acab86 100644 --- a/sandbox/rivet.json +++ b/sandbox/rivet.json @@ -2,7 +2,7 @@ "runtime": { "cors": { "origins": [ - "http://localhost:8080" + "http://127.0.0.1:8080" ] } }, @@ -31,9 +31,6 @@ "server": { "environment": { "SERVER_HOSTNAME": "0.0.0.0" - }, - "tags": { - }, "ports": { "game": { @@ -53,7 +50,6 @@ "rivet": { "registry": "local", "config": { - "apiEndpoint": "https://api.nathan16.gameinc.io", "serviceTokenVariable": "RIVET_SERVICE_TOKEN" } } diff --git a/sandbox/scripts/run_remote.sh b/sandbox/scripts/run_remote.sh index 47d9bed2..818b4897 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-back-vlk--staging.backend.nathan16.gameinc.io" +export RIVET_BACKEND_ENDPOINT="https://sandbox--staging.backend.rivet.gg" # Function to clean up background processes cleanup() { @@ -13,10 +13,5 @@ cleanup() { # Trap Ctrl+C and call cleanup trap cleanup INT TERM -# Run components -# ./scripts/run_local_backend.sh 2>&1 | sed 's/^/[BACKEND] /' & -# ./scripts/run_local_game_server.sh 2>&1 | sed 's/^/[GAME_SERVER] /' & -./scripts/run_local_client.sh 2>&1 | sed 's/^/[CLIENT] /' & - -# Wait for all background processes to finish -wait +# Run client +./scripts/run_local_client.sh 2>&1 | sed 's/^/[CLIENT] /' diff --git a/tests/basic/test.sh b/tests/basic/test.sh index 7b219567..5f2706fb 100755 --- a/tests/basic/test.sh +++ b/tests/basic/test.sh @@ -1,6 +1,6 @@ #!/bin/sh -curl -X POST "https://test-1-backe-1hv--staging.backend.nathan16.gameinc.io/modules/auth/scripts/send_email_verification/call" \ +curl -X POST "https://sandbox--staging.backend.rivet.gg/modules/auth/scripts/send_email_verification/call" \ -H "Content-Type: application/json" \ -d '{ "email": "test@rivet.gg"