diff --git a/frontend/maven-build.sh b/frontend/maven-build.sh index 3e96680afd..967af91bb0 100755 --- a/frontend/maven-build.sh +++ b/frontend/maven-build.sh @@ -8,6 +8,11 @@ export SITE_NAME="Test Site Name" npm install react-app-rewired cd frontend + +# Use `npm ci` for consistent and faster installs in production, as it installs exact versions +# from `package-lock.json` without modifying it, ensuring stability across environments. +npm ci + npm run build rsync -a build/ ../src/main/webapp/react