From 9bd61468f351bcf202077f6c045c0cb2da94c3a3 Mon Sep 17 00:00:00 2001 From: Jade Welton Date: Fri, 28 Aug 2026 13:07:45 -0700 Subject: [PATCH] Update all preview website URL references to the new URL. --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- preview/README.md | 4 ++-- preview/config.json | 2 +- preview/index.js | 2 +- src/Utils/EndpointUtils.ts | 2 +- web.config | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) 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/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/Utils/EndpointUtils.ts b/src/Utils/EndpointUtils.ts index 9f716fcb2..4e57ae3d0 100644 --- a/src/Utils/EndpointUtils.ts +++ b/src/Utils/EndpointUtils.ts @@ -88,7 +88,7 @@ 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 @@ - +