build fixes (#291)

This commit is contained in:
Michael Grace 2023-05-12 00:41:15 +01:00 committed by GitHub
parent 32e32cc9d1
commit bf2d8abb35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

2
Jenkinsfile vendored
View file

@ -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'

View file

@ -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 &&