mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-11 14:58:08 +00:00
Move the jwt logic to an interface, rename the api base url env var
This commit is contained in:
@@ -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}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user