File tree Expand file tree Collapse file tree 14 files changed +54
-13
lines changed Expand file tree Collapse file tree 14 files changed +54
-13
lines changed Original file line number Diff line number Diff line change 27
27
- name : Build Next.js Site
28
28
env :
29
29
NEXT_PUBLIC_BASE_PATH : " "
30
- run : npm run build:local
30
+ run : npm run build:dev
31
31
32
32
- name : Configure AWS Credentials
33
33
uses : aws-actions/configure-aws-credentials@v4
Original file line number Diff line number Diff line change 28
28
- name : Build Next.js Site
29
29
env :
30
30
NEXT_PUBLIC_BASE_PATH : " "
31
- run : npm run build:local
31
+ run : npm run build:prod
32
32
33
33
- name : Configure AWS Credentials
34
34
uses : aws-actions/configure-aws-credentials@v3
Original file line number Diff line number Diff line change 1
1
import { setConfig } from "@databiosphere/findable-ui/lib/config/config" ;
2
2
import { SiteConfig } from "@databiosphere/findable-ui/lib/config/entities" ;
3
+ import brcAnalyticsDev from "../../site-config/brc-analytics/dev/config" ;
3
4
import brcAnalyticsLocal from "../../site-config/brc-analytics/local/config" ;
5
+ import brcAnalyticsProd from "../../site-config/brc-analytics/prod/config" ;
4
6
5
7
const CONFIGS : { [ k : string ] : SiteConfig } = {
8
+ "brc-analytics-dev" : brcAnalyticsDev ,
6
9
"brc-analytics-local" : brcAnalyticsLocal ,
10
+ "brc-analytics-prod" : brcAnalyticsProd ,
7
11
} ;
8
12
9
13
let appConfig : SiteConfig | null = null ;
Original file line number Diff line number Diff line change 1
1
import ky from "ky" ;
2
2
import { WORKFLOW_ID } from "../apis/catalog/brc-analytics-catalog/common/entities" ;
3
+ import { GALAXY_ENVIRONMENT } from "site-config/common/galaxy" ;
3
4
4
5
interface WorkflowLandingsBody {
5
6
public : true ;
@@ -16,11 +17,9 @@ interface WorkflowLanding {
16
17
uuid : string ;
17
18
}
18
19
19
- const WORKFLOW_LANDINGS_API_URL =
20
- "https://test.galaxyproject.org/api/workflow_landings" ;
21
-
22
- const WORKFLOW_LANDING_URL_PREFIX =
23
- "https://test.galaxyproject.org/workflow_landings/" ;
20
+ const { galaxyInstanceUrl } = GALAXY_ENVIRONMENT ;
21
+ const workflowLandingsApiUrl = `${ galaxyInstanceUrl } api/workflow_landings` ;
22
+ const workflowLandingUrl = `${ galaxyInstanceUrl } workflow_landings` ;
24
23
25
24
/**
26
25
* Get the URL of the workflow landing page for the given genome workflow.
@@ -44,14 +43,14 @@ export async function getWorkflowLandingUrl(
44
43
workflow_id : workflowId ,
45
44
workflow_target_type : "trs_url" ,
46
45
} ;
47
- const res = await ky . post < WorkflowLanding > ( WORKFLOW_LANDINGS_API_URL , {
46
+ const res = await ky . post < WorkflowLanding > ( workflowLandingsApiUrl , {
48
47
json : body ,
49
48
retry : {
50
49
methods : [ "post" ] ,
51
50
} ,
52
51
} ) ;
53
52
const id = ( await res . json ( ) ) . uuid ;
54
- return `${ WORKFLOW_LANDING_URL_PREFIX } ${ encodeURIComponent ( id ) } ?public=true` ;
53
+ return `${ workflowLandingUrl } / ${ encodeURIComponent ( id ) } ?public=true` ;
55
54
}
56
55
57
56
function buildFastaUrl ( identifier : string ) : string {
Original file line number Diff line number Diff line change 11
11
export NEXT_PUBLIC_BASE_PATH=" "
12
12
13
13
# Build catalog
14
- npm run build:local
14
+ npm run build:dev
15
15
16
16
export BUCKET=s3://tik-brc-analytics.dev/
17
17
export SRCDIR=out/
Original file line number Diff line number Diff line change 5
5
"scripts" : {
6
6
"dev" : " ./scripts/dev.sh brc-analytics && ./scripts/set-version.sh dev && next dev" ,
7
7
"build:local" : " ./scripts/build.sh brc-analytics local && ./scripts/set-version.sh && next build" ,
8
+ "build:dev" : " ./scripts/build.sh brc-analytics dev && ./scripts/set-version.sh && next build" ,
9
+ "build:prod" : " ./scripts/build.sh brc-analytics prod && ./scripts/set-version.sh && next build" ,
8
10
"start" : " npx serve out" ,
9
11
"lint" : " next lint --dir ." ,
10
12
"check-format" : " prettier --check ." ,
Original file line number Diff line number Diff line change 11
11
export NEXT_PUBLIC_BASE_PATH=" "
12
12
13
13
# Build catalog
14
- npm run build:local
14
+ npm run build:prod
15
15
16
16
export BUCKET=s3://izk-brc-analytics.org/
17
17
export SRCDIR=out/
Original file line number Diff line number Diff line change
1
+ NEXT_PUBLIC_SITE_CONFIG = ' brc-analytics-dev'
2
+ NEXT_PUBLIC_GALAXY_ENV = " TEST"
Original file line number Diff line number Diff line change
1
+ import { SiteConfig } from "@databiosphere/findable-ui/lib/config/entities" ;
2
+ import { makeConfig } from "../local/config" ;
3
+
4
+ const BROWSER_URL = "https://brc-analytics.dev.clevercanary.com" ;
5
+
6
+ const config : SiteConfig = makeConfig ( BROWSER_URL ) ;
7
+
8
+ export default config ;
Original file line number Diff line number Diff line change 1
1
NEXT_PUBLIC_SITE_CONFIG = ' brc-analytics-local'
2
+ NEXT_PUBLIC_GALAXY_ENV = " TEST"
You can’t perform that action at this time.
0 commit comments