diff --git a/__tests__/html/speechRecognition.simple.js b/__tests__/html/speechRecognition.simple.js index 1361506b36..1d54a17341 100644 --- a/__tests__/html/speechRecognition.simple.js +++ b/__tests__/html/speechRecognition.simple.js @@ -33,7 +33,10 @@ describe.each([ } const { token } = await ( - await fetch('https://webchat-mockbot3.azurewebsites.net/api/token/directline', { method: 'POST' }) + await fetch( + 'https://hawo-mockbot4-token-app.blueriver-ce85e8f0.westus.azurecontainerapps.io/api/token/directline', + { method: 'POST' } + ) ).json(); const params = new URLSearchParams({ diff --git a/packages/embed/hostDevServer.mjs b/packages/embed/hostDevServer.mjs index 03a5292225..e6ab6d0b62 100644 --- a/packages/embed/hostDevServer.mjs +++ b/packages/embed/hostDevServer.mjs @@ -9,7 +9,7 @@ const DEFAULT_BOT_ID = 'webchat-mockbot'; const app = express(); app.get('/', async (_, res) => { - const tokenRes = await fetch('https://webchat-mockbot.azurewebsites.net/directline/token', { method: 'POST' }); + const tokenRes = await fetch('https://hawo-mockbot4-token-app.blueriver-ce85e8f0.westus.azurecontainerapps.io/api/token/directline', { method: 'POST' }); if (!tokenRes.ok) { return res.send(500); diff --git a/packages/test/page-object/src/globals/testHelpers/token/fetchDirectLineAppServiceExtensionToken.js b/packages/test/page-object/src/globals/testHelpers/token/fetchDirectLineAppServiceExtensionToken.js index a16411e806..26c191339b 100644 --- a/packages/test/page-object/src/globals/testHelpers/token/fetchDirectLineAppServiceExtensionToken.js +++ b/packages/test/page-object/src/globals/testHelpers/token/fetchDirectLineAppServiceExtensionToken.js @@ -8,7 +8,7 @@ export default async function fetchDirectLineAppServiceExtensionToken() { throw new Error('Failed to fetch Direct Line App Service Extension token.'); } - const { token } = await res.json(); + const { domain, token } = await res.json(); - return { domain: new URL('https://hawo-mockbot4-bot-app.azurewebsites.net/.bot/v3/directline').toString(), token }; + return { domain, token }; } diff --git a/samples/00.migration/a.v3-to-v4/README.md b/samples/00.migration/a.v3-to-v4/README.md index db1d4b99d9..87fe23d26d 100644 --- a/samples/00.migration/a.v3-to-v4/README.md +++ b/samples/00.migration/a.v3-to-v4/README.md @@ -102,7 +102,7 @@ Next, the code to render Web Chat must be updated in the body. Note that MockBot - resize: 'detect' - }, document.getElementById("bot")); + (async function () { -+ const res = await fetch('https://webchat-mockbot.azurewebsites.net/directline/token', { method: 'POST' }); ++ const res = await fetch('https://hawo-mockbot4-token-app.blueriver-ce85e8f0.westus.azurecontainerapps.io/api/token/directline', { method: 'POST' }); + const { token } = await res.json(); + + window.WebChat.renderWebChat({ @@ -186,7 +186,7 @@ Here is the finished `index.html`: