webpack dev server on remote galaxy server

This commit is contained in:
Oleg Zharkov
2021-08-18 18:44:06 +02:00
parent bdb0de77a0
commit 84fa44a124
2 changed files with 6 additions and 0 deletions
+4
View File
@@ -83,6 +83,10 @@ environment variable:
GALAXY_URL="http://localhost:8000" make client-dev-server
Sometimes you want to run your UI against a remote Galaxy server. This is also possible, if you enable `CHANGE_ORIGIN` flag
CHANGE_ORIGIN=true GALAXY_URL="https://usegalaxy.org/" make client-dev-server
## Changing Styles/CSS
Galaxy uses Sass for its styling, which is a superset of CSS that compiles down
+2
View File
@@ -232,6 +232,8 @@ module.exports = (env = {}, argv = {}) => {
proxy: {
"/": {
target: process.env.GALAXY_URL || "http://localhost:8080",
secure: process.env.CHANGE_ORIGIN ? !process.env.CHANGE_ORIGIN : true,
changeOrigin: !!process.env.CHANGE_ORIGIN,
},
},
},