Skip to content

Commit 8e6f629

Browse files
committed
Change BaseURL to use DomainInsecure in server scripts
1 parent 13534c5 commit 8e6f629

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Site/src/routes/(rbxclient)/game/[id=asset]/serve/+server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export async function GET({ params }) {
2727

2828
const scriptFile = Bun.file("../data/server/loadscripts/host.lua")
2929
const script = (await scriptFile.text())
30-
.replaceAll("_BASE_URL", `"${config.Domain}"`)
30+
.replaceAll("_BASE_URL", `"${config.DomainInsecure}"`)
3131
.replaceAll("_MAP_LOCATION", `"http://${config.DomainInsecure}/game/${id}"`)
3232
.replaceAll("_SERVER_PORT", idToPort(id).toString())
3333
.replaceAll("_SERVER_PRESENCE_URL", `"${serverPresenceUrl}"`)

Site/src/routes/(rbxclient)/game/gameserver/+server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const port = 53640
66
export async function GET() {
77
const scriptFile = Bun.file("../data/server/loadscripts/host.lua")
88
const script = (await scriptFile.text())
9-
.replaceAll("_BASE_URL", `"${config.Domain}"`)
9+
.replaceAll("_BASE_URL", `"${config.DomainInsecure}"`)
1010
.replaceAll("_MAP_LOCATION", `""`)
1111
.replaceAll("_SERVER_PORT", port.toString())
1212
.replaceAll("_SERVER_PRESENCE_URL", `""`)

Site/src/routes/(rbxclient)/game/host/+server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export async function GET({ url }) {
2929

3030
const scriptFile = Bun.file("../data/server/loadscripts/host.lua")
3131
const script = (await scriptFile.text())
32-
.replaceAll("_BASE_URL", `"${config.Domain}"`)
32+
.replaceAll("_BASE_URL", `"${config.DomainInsecure}"`)
3333
.replaceAll("_MAP_LOCATION", `"${mapLocation || ""}"`)
3434
.replaceAll("_SERVER_PORT", port.toString())
3535
.replaceAll("_SERVER_PRESENCE_URL", `"${serverPresenceUrl}"`)

0 commit comments

Comments
 (0)