Skip to content

Commit

Permalink
fix(web): prioritize dataset-server URL param
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov committed Sep 5, 2023
1 parent bb5aa6a commit d60ced5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages_rs/nextclade-web/src/io/fetchDatasets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ export async function getDatasetServerUrl(urlQuery: ParsedUrlQuery) {
// `.env` file), or using `&dataset-server=gh` or `&dataset-server=github` URL parameters, then check if the
// corresponding branch in the default data repo on GitHub contains an `index.json` file. And and if yes, use it.
const datasetServerTryGithubBranch =
process.env.DATA_TRY_GITHUB_BRANCH === '1' || (datasetServerUrl && ['gh', 'github'].includes(datasetServerUrl))
(isNil(datasetServerUrl) && process.env.DATA_TRY_GITHUB_BRANCH) === '1' ||
(datasetServerUrl && ['gh', 'github'].includes(datasetServerUrl))
if (datasetServerTryGithubBranch) {
const githubDatasetServerUrl = await getGithubDatasetServerUrl()
if (githubDatasetServerUrl) {
Expand Down

0 comments on commit d60ced5

Please sign in to comment.