Skip to content

Commit

Permalink
fix: update spatial url condition (#967)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaloster authored Jun 7, 2024
1 parent 5e9bfec commit 02db419
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions client/src/components/graph/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,10 @@ function getSpatialUrl(s3URI: string) {
if (hostname.includes("staging")) {
return `https://cellxgene.staging.single-cell.czi.technology/spatial-deep-zoom/${datasetVersionId}/`;
}

if (hostname.includes("prod")) {
return `https://cellxgene.cziscience.com/spatial-deep-zoom/${datasetVersionId}/`;
if (hostname.includes("dev") || hostname.includes("localhost")) {
return `https://cellxgene.dev.single-cell.czi.technology/spatial-deep-zoom/${datasetVersionId}/`;
}

return `https://cellxgene.dev.single-cell.czi.technology/spatial-deep-zoom/${datasetVersionId}/`;
return `https://cellxgene.cziscience.com/spatial-deep-zoom/${datasetVersionId}/`;
}

function getDatasetVersionId(s3URI: string) {
Expand Down

0 comments on commit 02db419

Please sign in to comment.