From cb8b72e8da476ce319f433e6f250354c16454cf6 Mon Sep 17 00:00:00 2001 From: Scott Cain Date: Wed, 28 Feb 2024 12:15:11 -0800 Subject: [PATCH] fair chance I got the proxy settings for jbrowse2 right --- cdk/amplify-stage-stack.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cdk/amplify-stage-stack.ts b/cdk/amplify-stage-stack.ts index 8c157aac7..6c79b3bf4 100644 --- a/cdk/amplify-stage-stack.ts +++ b/cdk/amplify-stage-stack.ts @@ -17,6 +17,9 @@ export class AmplifyStageStack extends cdk.Stack { const stage_paths = [ { source: '/api/<*>', target: 'https://stage-api.alliancegenome.org/api/<*>', status: amplify.RedirectStatus.REWRITE }, + { source: '/jbrowse2', target: 'https://stage.alliancegenome.org/jbrowse2/', status: amplify.RedirectStatus.PERMANENT_REDIRECT }, + { source: '/jbrowse2/', target: 'https://stage.dgaayxgqoarxf.amplifyapp.com/', status: amplify.RedirectStatus.REWRITE }, + { source: '/jbrowse2/<*>', target: 'https://stage.dgaayxgqoarxf.amplifyapp.com/<*>', status: amplify.RedirectStatus.REWRITE }, { source: '/jbrowse/worms/protein', target: 'https://stage.alliancegenome.org/jbrowse/worms/protein/', status: amplify.RedirectStatus.PERMANENT_REDIRECT }, { source: '/jbrowse/worms/protein/', target: 'https://staging.djgvd7iswt7yy.amplifyapp.com/', status: amplify.RedirectStatus.REWRITE }, { source: '/jbrowse/worms/protein/<*>', target: 'https://staging.djgvd7iswt7yy.amplifyapp.com/<*>', status: amplify.RedirectStatus.REWRITE },