Enhance deployment process: Add cleanup steps for frontend artifacts in deploy.sh to ensure a clean build environment. Update axios.js to improve token handling and response error management, ensuring proper logout flow. Update index.html with new asset references for improved caching.
All checks were successful
Deploy miriamgemeinde / deploy (push) Successful in 7s

This commit is contained in:
Torsten Schulz (local)
2026-04-29 18:36:55 +02:00
parent 7156cc141a
commit 05a8229b83
24 changed files with 205 additions and 9 deletions

View File

@@ -34,6 +34,11 @@ if ! ensure_command npm; then err "npm not found in PATH"; exit 127; fi
log "Fetching latest changes..."
git fetch --all --prune || { err "git fetch failed"; exit 1; }
log "Cleaning generated frontend artifacts..."
git restore -- package-lock.json package.json 2>/dev/null || true
git restore -- public/index.html 2>/dev/null || true
git clean -fd -- dist public/assets || { err "cleanup failed"; exit 1; }
log "Pulling latest changes..."
git pull --ff-only || { err "git pull failed"; exit 1; }