diff --git a/src/app.ts b/src/app.ts index f8620796..c407a818 100644 --- a/src/app.ts +++ b/src/app.ts @@ -128,7 +128,7 @@ export class GBServer { GBServer.globals.publicAddress = await core.ensureProxy(port); } } else { - const serverAddress = `https://${process.env.WEBSITE_SITE_NAME}.azurewebsites.net`; + const serverAddress = process.env.BOT_URL; GBLog.info(`Defining server address at ${serverAddress}...`); GBServer.globals.publicAddress = serverAddress; }