Skip to content

Commit

Permalink
Switch default catalog on anvil-cmg/prod
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes-ucsc committed Aug 2, 2023
1 parent 688b575 commit a1dac11
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions explorer/site-config/anvil-cmg/dev/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ const logoUsagov = "/images/logoUsagov.png";
const SLOGAN = "NHGRI Analysis Visualization and Informatics Lab-space";
export const URL_DATASETS = "/datasets";

export function make_config(browserUrl: string): SiteConfig {
export function make_config(
browserUrl: string,
catalog: string=CATALOG_DEFAULT
): SiteConfig {
return {
analytics: {
gtmAuth: "up3ucjProssPj7Iq59W45g", // GTM environment-specific
Expand Down Expand Up @@ -90,10 +93,10 @@ export function make_config(browserUrl: string): SiteConfig {
],
dataSource: {
defaultDetailParams: {
catalog: CATALOG_DEFAULT,
catalog: catalog,
},
defaultListParams: {
catalog: CATALOG_DEFAULT,
catalog: catalog,
size: "25",
sort: "entryId",
},
Expand Down
2 changes: 1 addition & 1 deletion explorer/site-config/anvil-cmg/prod/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { downloadColumn } from "../dev/index/filesEntityConfig";
import { authenticationConfig } from "./authentication/authentication";

const config: SiteConfig = {
...make_config("https://prod.anvil.gi.ucsc.edu"),
...make_config("https://prod.anvil.gi.ucsc.edu", "anvil1"),
exportToTerraUrl: "https://app.terra.bio/",
};

Expand Down

0 comments on commit a1dac11

Please sign in to comment.