diff --git a/deploy/deploy.sh b/deploy/deploy.sh index 65d033f..6bdd7aa 100644 --- a/deploy/deploy.sh +++ b/deploy/deploy.sh @@ -93,7 +93,8 @@ ensure_ui_permissions() { clean_ui_build_artifacts() { cd "$APP_DIR/ui" - rm -rf dist .quasar node_modules/.cache || true + # dist'i silmiyoruz -> eski chunklar kısa süre kalabilir, ChunkLoadError azalır + rm -rf .quasar node_modules/.cache || true } purge_nginx_ui_cache() { @@ -101,7 +102,6 @@ purge_nginx_ui_cache() { } purge_cdn_html_cache() { - # Optional Cloudflare purge. Skip safely if not configured. local zone_id="${CF_ZONE_ID:-}" local api_token="${CF_API_TOKEN:-}" local site_url="${SITE_URL:-https://ss.baggi.com.tr}" @@ -174,10 +174,7 @@ verify_live_ui_hash() { fi local live_html - live_html="$(curl -sS \ - -H "Cache-Control: no-cache" \ - -H "Pragma: no-cache" \ - "${site_url}/" || true)" + live_html="$(curl -sS -H "Cache-Control: no-cache" -H "Pragma: no-cache" "${site_url}/" || true)" if [[ -z "$live_html" ]]; then echo "WARN: live index fetch failed for ${site_url}/" return 0