Skip to content
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

Commit 20878ff

Browse files
authored
chore(sandbox): update to new rivet.json schema (#164)
1 parent f37cfdf commit 20878ff

File tree

9 files changed

+270
-81
lines changed

9 files changed

+270
-81
lines changed

sandbox/client/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>OpenGB E2E Test</title>
6+
<title>Rivet Modules E2E Test</title>
77
</head>
88
<body>
9-
<h1>OpenGB E2E Test</h1>
9+
<h1>Rivet Modules E2E Test</h1>
1010

1111
<div>
1212
<label for="environmentToggle">Environment:</label>

sandbox/deno.lock

Lines changed: 261 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sandbox/game_server/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ let gameConfig = {
5959
interface GameState {
6060
lobbyConfig: any;
6161
lobbyTags: any;
62-
scores: { [id: number]: number };
62+
scores: Record<number, number>;
6363
}
6464

6565
const gameState: GameState = {

sandbox/backend.dev.json renamed to sandbox/rivet.dev.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "./backend.json",
2+
"extends": "./rivet.json",
33
"modules": {
44
"lobbies": {
55
"registry": "local",
File renamed without changes.

sandbox/scripts/fetch_state.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env -S deno run -A
22

3-
const origin = Deno.env.get("OPENGB_ORIGIN");
3+
const endpoint = Deno.env.get("BACKEND_ENDPOINT");
44

5-
const res = await fetch(`${origin}/modules/lobbies/scripts/fetch_lobby_manager_state/call`, {
5+
const res = await fetch(`${endpoint}/modules/lobbies/scripts/fetch_lobby_manager_state/call`, {
66
method: "POST",
77
headers: {
88
"Content-Type": "application/json",

sandbox/scripts/gen_sdk.ts

Lines changed: 0 additions & 72 deletions
This file was deleted.

sandbox/scripts/reset_state.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/usr/bin/env -S deno run -A
22

3-
const origin = Deno.env.get("OPENGB_ORIGIN");
3+
const endpoint = Deno.env.get("BACKEND_ENDPOINT");
44

5-
const res = await fetch(`${origin}/modules/lobbies/scripts/reset_lobby_manager_state/call`, {
5+
const res = await fetch(`${endpoint}/modules/lobbies/scripts/reset_lobby_manager_state/call`, {
66
method: "POST",
77
headers: {
88
"Content-Type": "application/json",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
22

3-
opengb dev --project backend.dev.json
3+
rivet dev --project rivet.dev.json

0 commit comments

Comments
 (0)