From bf2d8abb3543b05f015733d3360eaab2868817bf Mon Sep 17 00:00:00 2001 From: Michael Grace <56653532+michael-grace@users.noreply.github.com> Date: Fri, 12 May 2023 00:41:15 +0100 Subject: [PATCH] build fixes (#291) --- Jenkinsfile | 2 +- config/webpack.config.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ec8ce6f..3dd54fc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -55,7 +55,7 @@ pipeline { SENTRY_ENVIRONMENT = 'webstudio-dev' } 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' sshagent(credentials: ['ury']) { sh 'rsync -av --delete-after build/ deploy@ury:/usr/local/www/webstudio-dev' diff --git a/config/webpack.config.js b/config/webpack.config.js index 7f0e9b1..18bda77 100644 --- a/config/webpack.config.js +++ b/config/webpack.config.js @@ -683,7 +683,8 @@ module.exports = function(webpackEnv) { urlPattern: /NIPSWeb\/(secure|managed)_play/, handler: "CacheFirst" } - ] + ], + maximumFileSizeToCacheInBytes: 6000000, }), // TypeScript type checking useTypeScript &&