aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/pages
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-06 16:34:22 +0800
committerFabio Berger <me@fabioberger.com>2018-03-06 16:34:22 +0800
commit5dd065410517f511b2e087dcd91839526bac95b5 (patch)
tree56d1fa8c24d0925621c7ccb41f420753cd70eac4 /packages/website/ts/pages
parentb4b664e97acd25b8a00c7fae3b6eacd9fbf74585 (diff)
downloaddexon-sol-tools-5dd065410517f511b2e087dcd91839526bac95b5.tar
dexon-sol-tools-5dd065410517f511b2e087dcd91839526bac95b5.tar.gz
dexon-sol-tools-5dd065410517f511b2e087dcd91839526bac95b5.tar.bz2
dexon-sol-tools-5dd065410517f511b2e087dcd91839526bac95b5.tar.lz
dexon-sol-tools-5dd065410517f511b2e087dcd91839526bac95b5.tar.xz
dexon-sol-tools-5dd065410517f511b2e087dcd91839526bac95b5.tar.zst
dexon-sol-tools-5dd065410517f511b2e087dcd91839526bac95b5.zip
Also show staging 0x.js docs on development
Diffstat (limited to 'packages/website/ts/pages')
-rw-r--r--packages/website/ts/pages/documentation/doc_page.tsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/website/ts/pages/documentation/doc_page.tsx b/packages/website/ts/pages/documentation/doc_page.tsx
index 85fd9bf33..098df5bfd 100644
--- a/packages/website/ts/pages/documentation/doc_page.tsx
+++ b/packages/website/ts/pages/documentation/doc_page.tsx
@@ -15,11 +15,11 @@ import { Translate } from 'ts/utils/translate';
const ZERO_EX_JS_VERSION_MISSING_TOPLEVEL_PATH = '0.32.4';
+const isDevelopment = configs.ENVIRONMENT === Environments.DEVELOPMENT;
const docIdToS3BucketName: { [id: string]: string } = {
- [DocPackages.ZeroExJs]: '0xjs-docs-jsons',
+ [DocPackages.ZeroExJs]: isDevelopment ? 'staging-0xjs-docs-jsons' : '0xjs-docs-jsons',
[DocPackages.SmartContracts]: 'smart-contracts-docs-json',
- [DocPackages.Connect]:
- configs.ENVIRONMENT === Environments.DEVELOPMENT ? 'staging-connect-docs-jsons' : 'connect-docs-jsons',
+ [DocPackages.Connect]: isDevelopment ? 'staging-connect-docs-jsons' : 'connect-docs-jsons',
};
const docIdToSubpackageName: { [id: string]: string } = {