Move the jwt logic to an interface, rename the api base url env var

This commit is contained in:
oleksandr-shysh
2025-06-16 11:49:23 +03:00
parent 13e14a92c2
commit 179eb6f72f
7 changed files with 105 additions and 69 deletions
+1 -1
View File
@@ -592,6 +592,6 @@ export async function buildGameUrl(
const config = await getServerConfigFromClient();
const apiPath = `/api/${path}/${gameID}`;
const baseUrl = process.env.API_BASE_URL || "";
const baseUrl = process.env.APP_BASE_URL || "";
return `${baseUrl}/${config.workerPath(gameID)}${apiPath}`;
}