Inject correct MyRadio URL in build (fixes #32)

This commit is contained in:
Marks Polakovs 2020-03-29 10:53:58 +02:00
parent 2c92b086c3
commit f0c1292f34

4
Jenkinsfile vendored
View file

@ -25,6 +25,10 @@ pipeline {
when {
branch 'production'
}
environment {
REACT_APP_MYRADIO_NONAPI_BASE = 'https://ury.org.uk/myradio'
REACT_APP_MYRADIO_BASE = 'https://ury.org.uk/api/v2'
}
steps {
sh 'sed -i -e \'s/ury.org.uk\\/webstudio-dev/ury.org.uk\\/webstudio/\' package.json'
sh 'yarn build'