build fixes (#291)
This commit is contained in:
parent
32e32cc9d1
commit
bf2d8abb35
2 changed files with 3 additions and 2 deletions
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
|
@ -55,7 +55,7 @@ pipeline {
|
||||||
SENTRY_ENVIRONMENT = 'webstudio-dev'
|
SENTRY_ENVIRONMENT = 'webstudio-dev'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
sh 'newpkgjson=$(jq \'.homepage = "https://ury.org.uk/webstudio-dev"\' package.json) && echo "${newpkgjson}" > package.json'
|
sh 'jq \'.homepage = "https://ury.org.uk/webstudio-dev"\' package.json > package-replace.json && mv package-replace.json package.json'
|
||||||
sh 'REACT_APP_GIT_SHA=`git rev-parse --short HEAD` yarn build'
|
sh 'REACT_APP_GIT_SHA=`git rev-parse --short HEAD` yarn build'
|
||||||
sshagent(credentials: ['ury']) {
|
sshagent(credentials: ['ury']) {
|
||||||
sh 'rsync -av --delete-after build/ deploy@ury:/usr/local/www/webstudio-dev'
|
sh 'rsync -av --delete-after build/ deploy@ury:/usr/local/www/webstudio-dev'
|
||||||
|
|
|
@ -683,7 +683,8 @@ module.exports = function(webpackEnv) {
|
||||||
urlPattern: /NIPSWeb\/(secure|managed)_play/,
|
urlPattern: /NIPSWeb\/(secure|managed)_play/,
|
||||||
handler: "CacheFirst"
|
handler: "CacheFirst"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
maximumFileSizeToCacheInBytes: 6000000,
|
||||||
}),
|
}),
|
||||||
// TypeScript type checking
|
// TypeScript type checking
|
||||||
useTypeScript &&
|
useTypeScript &&
|
||||||
|
|
Loading…
Reference in a new issue