From 5080e516d7d245bbfa68ca194bc1647ebbe8981a Mon Sep 17 00:00:00 2001 From: jawelton74 <103591340+jawelton74@users.noreply.github.com> Date: Wed, 2 Sep 2026 13:28:31 -0700 Subject: [PATCH] Update preview site URL (#2572) * Update all preview website URL references to the new URL. * Remove az cli config. * Fix formatting. * Fix new preview URL in ConfigContext --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- preview/.azure/config | 7 ------- preview/README.md | 4 ++-- preview/config.json | 2 +- preview/index.js | 2 +- src/ConfigContext.ts | 2 +- src/Utils/EndpointUtils.ts | 4 +++- web.config | 2 +- 8 files changed, 10 insertions(+), 15 deletions(-) delete mode 100644 preview/.azure/config diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 7ff47e44c..f294ca39f 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1 +1 @@ -[Preview this branch](https://dataexplorer-preview.azurewebsites.net/pull/EDIT_THIS_NUMBER_IN_THE_PR_DESCRIPTION?feature.someFeatureFlagYouMightNeed=true) +[Preview this branch](https://dataexplorer-preview.portal.cosmos.azure.com/pull/EDIT_THIS_NUMBER_IN_THE_PR_DESCRIPTION?feature.someFeatureFlagYouMightNeed=true) diff --git a/preview/.azure/config b/preview/.azure/config deleted file mode 100644 index 4e174b741..000000000 --- a/preview/.azure/config +++ /dev/null @@ -1,7 +0,0 @@ -[defaults] -group = dataexplorer-preview -sku = P1v2 -appserviceplan = dataexplorer-preview -location = westus2 -web = dataexplorer-preview - diff --git a/preview/README.md b/preview/README.md index 59a84a2d7..86858539e 100644 --- a/preview/README.md +++ b/preview/README.md @@ -4,8 +4,8 @@ Cosmos Explorer Preview makes it possible to try a working version of any commit Initial support is for Hosted (Connection string only) or the Azure Portal. Examples: -Connection string URLs: https://dataexplorer-preview.azurewebsites.net/commit/COMMIT_SHA/hostedExplorer.html -Portal URLs: https://ms.portal.azure.com/?dataExplorerSource=https://dataexplorer-preview.azurewebsites.net/commit/COMMIT_SHA/explorer.html#home +Connection string URLs: https://dataexplorer-preview.portal.cosmos.azure.com/commit/COMMIT_SHA/hostedExplorer.html +Portal URLs: https://ms.portal.azure.com/?dataExplorerSource=https://dataexplorer-preview.portal.cosmos.azure.com/commit/COMMIT_SHA/explorer.html#home In both cases replace `COMMIT_SHA` with the commit you want to view. It must have already completed its build on GitHub Actions. diff --git a/preview/config.json b/preview/config.json index a67bcd2ef..0332eae1f 100644 --- a/preview/config.json +++ b/preview/config.json @@ -1,4 +1,4 @@ { "PROXY_PATH": "/proxy", - "msalRedirectURI": "https://dataexplorer-preview.azurewebsites.net/" + "msalRedirectURI": "https://dataexplorer-preview.portal.cosmos.azure.com/" } diff --git a/preview/index.js b/preview/index.js index be44c63ed..7a994a7e6 100644 --- a/preview/index.js +++ b/preview/index.js @@ -4,7 +4,7 @@ const port = process.env.PORT || 3000; const fetch = require("node-fetch"); const backendEndpoint = "https://cdb-ms-mpac-pbe.cosmos.azure.com"; -const previewSiteEndpoint = "https://dataexplorer-preview.azurewebsites.net"; +const previewSiteEndpoint = "https://dataexplorer-preview.portal.cosmos.azure.com"; const previewStorageWebsiteEndpoint = "_REPLACE_STORAGE_WEBSITE_ENDPOINT_"; const githubApiUrl = "https://api.github.com/repos/Azure/cosmos-explorer"; const azurePortalMpacEndpoint = "https://ms.portal.azure.com/"; diff --git a/src/ConfigContext.ts b/src/ConfigContext.ts index a14deb248..34eaeed07 100644 --- a/src/ConfigContext.ts +++ b/src/ConfigContext.ts @@ -80,7 +80,7 @@ let configContext: Readonly = { `^https:\\/\\/cosmos-db-dataexplorer-germanycentral\\.azurewebsites\\.de$`, `^https:\\/\\/.*\\.fabric\\.microsoft\\.com$`, `^https:\\/\\/.*\\.powerbi\\.com$`, - `^https:\\/\\/dataexplorer-preview\\.azurewebsites\\.net$`, + `^https:\\/\\/dataexplorer-preview\\.portal\\.cosmos\\.azure\\.com$`, `^https:\\/\\/explorer\\.cosmos\\.sovcloud-api\\.fr$`, `^https:\\/\\/portal\\.sovcloud-azure\\.fr$`, `^https:\\/\\/explorer\\.cosmos\\.sovcloud-api\\.de$`, diff --git a/src/Utils/EndpointUtils.ts b/src/Utils/EndpointUtils.ts index 9f716fcb2..e230a0469 100644 --- a/src/Utils/EndpointUtils.ts +++ b/src/Utils/EndpointUtils.ts @@ -88,7 +88,9 @@ export const allowedHostedExplorerEndpoints: ReadonlyArray = [ ...(process.env.NODE_ENV === "development" ? ["https://localhost:12900"] : []), ]; -export const allowedMsalRedirectEndpoints: ReadonlyArray = ["https://dataexplorer-preview.azurewebsites.net/"]; +export const allowedMsalRedirectEndpoints: ReadonlyArray = [ + "https://dataexplorer-preview.portal.cosmos.azure.com/", +]; export const allowedJunoOrigins: ReadonlyArray = [ JunoEndpoints.Test, diff --git a/web.config b/web.config index e987fa939..2bea8b149 100644 --- a/web.config +++ b/web.config @@ -30,7 +30,7 @@ - +