Skip to content

Commit

Permalink
refactoring env
Browse files Browse the repository at this point in the history
  • Loading branch information
mbaudis committed Dec 9, 2024
1 parent 9420272 commit 62579ba
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 17 deletions.
3 changes: 0 additions & 3 deletions .env.development

This file was deleted.

5 changes: 0 additions & 5 deletions .env.local

This file was deleted.

5 changes: 0 additions & 5 deletions .env.staging

This file was deleted.

5 changes: 5 additions & 0 deletions env/local
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SERVER=http://progenetix.test/
NEXT_PUBLIC_API_PATH=http://progenetix.test/
NEXT_PUBLIC_PREFETCH_API_PATH=http://progenetix.test/
NEXT_PUBLIC_USE_PROXY=false
NEXT_PUBLIC_SITE_URL=http://progenetix.test/
File renamed without changes.
4 changes: 4 additions & 0 deletions env/staging
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
NEXT_PUBLIC_API_PATH=/
NEXT_PUBLIC_PREFETCH_API_PATH=https://staging.progenetix.org/
NEXT_PUBLIC_USE_PROXY=false
NEXT_PUBLIC_SITE_URL=https://staging.progenetix.org/
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"scripts": {
"dev": "next",
"build": "npm run lint && npm run test && next build && next export",
"update": "env-cmd -f .env.production npm run-script build",
"staging": "env-cmd -f .env.staging npm run-script build",
"local": "env-cmd -f .env.local npm run-script build",
"update": "env-cmd -f env/production npm run-script build",
"staging": "env-cmd -f env/staging npm run-script build",
"local": "env-cmd -f env/local npm run-script build",
"start": "next start",
"export": "next export",
"test": "jest",
Expand Down
4 changes: 3 additions & 1 deletion src/components/searchResults/DatasetResultBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import { ExternalLink } from "../helpersShared/linkHelpers"
import { svgFetcher } from "../../hooks/fetcher"
import BiosamplesStatsDataTable from "./BiosamplesStatsDataTable"
import { WithData } from "../Loader"
import { refseq2chro } from "../Chromosome"

const HANDOVER_IDS = {
histoplot: "histoplot",
Expand Down Expand Up @@ -380,8 +381,9 @@ function ucscHref(query) {
ucscstart = query.start
ucscend = query.start
}
let chro = refseq2chro(query.referenceName)

return `http://www.genome.ucsc.edu/cgi-bin/hgTracks?db=hg38&position=chr${query.referenceName}%3A${ucscstart}%2D${ucscend}`
return `http://www.genome.ucsc.edu/cgi-bin/hgTracks?db=hg38&position=chr${chro}%3A${ucscstart}%2D${ucscend}`
}

function PagedLink({ handover }) {
Expand Down

0 comments on commit 62579ba

Please sign in to comment.