File tree Expand file tree Collapse file tree
Site/src/routes/(rbxclient)/game Expand file tree Collapse file tree Original file line number Diff line number Diff 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 } "` )
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const port = 53640
66export 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" , `""` )
Original file line number Diff line number Diff 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 } "` )
You can’t perform that action at this time.
0 commit comments