Files
cosmos-explorer/preview
dependabot[bot] 07c8cf80f0 Bump path-to-regexp in /preview
Bumps [path-to-regexp](https://github.com/pillarjs/path-to-regexp) to 8.4.0 and updates ancestor dependency . These dependencies need to be updated together.


Updates `path-to-regexp` from 8.3.0 to 8.4.0
- [Release notes](https://github.com/pillarjs/path-to-regexp/releases)
- [Changelog](https://github.com/pillarjs/path-to-regexp/blob/master/History.md)
- [Commits](https://github.com/pillarjs/path-to-regexp/compare/v8.3.0...v8.4.0)

Updates `path-to-regexp` from 0.1.12 to 0.1.13
- [Release notes](https://github.com/pillarjs/path-to-regexp/releases)
- [Changelog](https://github.com/pillarjs/path-to-regexp/blob/master/History.md)
- [Commits](https://github.com/pillarjs/path-to-regexp/compare/v8.3.0...v8.4.0)

---
updated-dependencies:
- dependency-name: path-to-regexp
  dependency-version: 8.4.0
  dependency-type: indirect
- dependency-name: path-to-regexp
  dependency-version: 0.1.13
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-04-17 20:12:27 +00:00
..
2025-01-30 16:14:03 -08:00
2026-04-17 20:12:27 +00:00
2025-01-30 16:14:03 -08:00

Cosmos Explorer Preview

Cosmos Explorer Preview makes it possible to try a working version of any commit on master or in a PR. No need to run the app locally or deploy to staging.

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

In both cases replace COMMIT_SHA with the commit you want to view. It must have already completed its build on GitHub Actions.

Architechture

  • This folder contains a NodeJS app deployed to Azure App Service that powers preview URLs:
    • Paths starting with /commit/ are proxied to an Azure Storage account containing build artifacts
    • Paths starting with /proxy/ are proxied dynamically to Cosmos account endpoints. Required otherwise CORS would need to be configured for every account accessed.
    • Paths starting with /api/ are proxied to Portal APIs that do not support CORS.
  • On GitHub Actions build completion:
    • All files in dist are uploaded to an Azure Storage account namespaced by the SHA of the commit
    • /preview/config.json is uploaded to the same folder with preview specific configuration