Skip to content

Commit 6825491

Browse files
committed
isdev fcn
1 parent 5bff755 commit 6825491

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/settings/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const burwellTileDomain = getRuntimeConfig(
1313
);
1414
export const apiDomain = getRuntimeConfig("MACROSTRAT_API_DOMAIN");
1515
export const tileserverDomain = burwellTileDomain;
16-
export const instance = getRuntimeConfig("MACROSTRAT_INSTANCE");
16+
export const isDev = getRuntimeConfig("MACROSTRAT_INSTANCE") === "Development";
1717

1818
export const gddDomain = "https://xdd.wisc.edu";
1919
export const pbdbDomain = "https://paleobiodb.org";
@@ -68,5 +68,5 @@ export const SETTINGS = {
6868
apiV2Prefix,
6969
mapPagePrefix,
7070
routerBasename,
71-
instance,
71+
isDev,
7272
};

pages/dev/test-site/+Page.client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function Page() {
9898
h('a', { href: 'https://rockd.org', target: '_blank' }, 'Go mobile')
9999
]), href: 'https://rockd.org'}, [
100100
]),
101-
h.if(SETTINGS.instance === "Development")(LinkCard, { title: 'Dev Pages', href: '/dev'}),
101+
h.if(SETTINGS.isDev)(LinkCard, { title: 'Dev Pages', href: '/dev'}),
102102
])
103103
])
104104
]),

0 commit comments

Comments
 (0)