Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -93,7 +93,8 @@ ensure_ui_permissions() {
|
|||||||
|
|
||||||
clean_ui_build_artifacts() {
|
clean_ui_build_artifacts() {
|
||||||
cd "$APP_DIR/ui"
|
cd "$APP_DIR/ui"
|
||||||
rm -rf dist .quasar node_modules/.cache || true
|
# dist'i silmiyoruz -> eski chunklar k<>sa s<>re kalabilir, ChunkLoadError azal<61>r
|
||||||
|
rm -rf .quasar node_modules/.cache || true
|
||||||
}
|
}
|
||||||
|
|
||||||
purge_nginx_ui_cache() {
|
purge_nginx_ui_cache() {
|
||||||
@@ -101,7 +102,6 @@ purge_nginx_ui_cache() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
purge_cdn_html_cache() {
|
purge_cdn_html_cache() {
|
||||||
# Optional Cloudflare purge. Skip safely if not configured.
|
|
||||||
local zone_id="${CF_ZONE_ID:-}"
|
local zone_id="${CF_ZONE_ID:-}"
|
||||||
local api_token="${CF_API_TOKEN:-}"
|
local api_token="${CF_API_TOKEN:-}"
|
||||||
local site_url="${SITE_URL:-https://ss.baggi.com.tr}"
|
local site_url="${SITE_URL:-https://ss.baggi.com.tr}"
|
||||||
@@ -174,10 +174,7 @@ verify_live_ui_hash() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
local live_html
|
local live_html
|
||||||
live_html="$(curl -sS \
|
live_html="$(curl -sS -H "Cache-Control: no-cache" -H "Pragma: no-cache" "${site_url}/" || true)"
|
||||||
-H "Cache-Control: no-cache" \
|
|
||||||
-H "Pragma: no-cache" \
|
|
||||||
"${site_url}/" || true)"
|
|
||||||
if [[ -z "$live_html" ]]; then
|
if [[ -z "$live_html" ]]; then
|
||||||
echo "WARN: live index fetch failed for ${site_url}/"
|
echo "WARN: live index fetch failed for ${site_url}/"
|
||||||
return 0
|
return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user