Inject correct MyRadio URL in build (fixes #32)
This commit is contained in:
parent
2c92b086c3
commit
f0c1292f34
1 changed files with 4 additions and 0 deletions
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
|
@ -25,6 +25,10 @@ pipeline {
|
||||||
when {
|
when {
|
||||||
branch 'production'
|
branch 'production'
|
||||||
}
|
}
|
||||||
|
environment {
|
||||||
|
REACT_APP_MYRADIO_NONAPI_BASE = 'https://ury.org.uk/myradio'
|
||||||
|
REACT_APP_MYRADIO_BASE = 'https://ury.org.uk/api/v2'
|
||||||
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'sed -i -e \'s/ury.org.uk\\/webstudio-dev/ury.org.uk\\/webstudio/\' package.json'
|
sh 'sed -i -e \'s/ury.org.uk\\/webstudio-dev/ury.org.uk\\/webstudio/\' package.json'
|
||||||
sh 'yarn build'
|
sh 'yarn build'
|
||||||
|
|
Loading…
Reference in a new issue