prepare.sh: clean backend dependencies before installation to ensure a fresh build

This commit is contained in:
Carlos Santos 2025-08-04 12:38:08 +02:00
parent acc3fffaf7
commit a3e10d5b90

View File

@ -108,6 +108,8 @@ fi
if [ "$BUILD_BACKEND" = true ]; then
echo -e "${GREEN}Building backend...${NC}"
cd backend
rm -rf node_modules package-lock.json
npm cache clean --force
npm install
npm run build:prod
cd ..