diff --git a/packages/extension-base/src/utils/fetchStaticData.ts b/packages/extension-base/src/utils/fetchStaticData.ts index 3ef20de61e..cf03d713c8 100644 --- a/packages/extension-base/src/utils/fetchStaticData.ts +++ b/packages/extension-base/src/utils/fetchStaticData.ts @@ -3,8 +3,9 @@ import axios from 'axios'; +const PRODUCTION_BRANCHES = ['master', 'webapp', 'webapp-dev']; const branchName = process.env.BRANCH_NAME || 'koni-dev'; -const fetchTarget = (branchName === 'master' || branchName === 'webapp') ? 'list.json' : 'preview.json'; +const fetchTarget = PRODUCTION_BRANCHES.indexOf(branchName) > -1 ? 'list.json' : 'preview.json'; export async function fetchStaticData (slug: string, targetFile?: string) { const fetchFile = targetFile || fetchTarget;