Skip to content

Commit dbfa983

Browse files
proof-developer[bot]proof-dev
andauthored
ops: surface marketing fallback mode in smoke check (#814)
Co-authored-by: proof-dev <proof-dev@socialproof.dev>
1 parent 7499738 commit dbfa983

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

scripts/post-deploy-smoke.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,19 @@ check 'https://app.socialproof.dev/' 200 'dashboard-home'
3434
check 'https://widget.socialproof.dev/v1/socialproof.js' 200 'widget-asset'
3535
check 'https://api.socialproof.dev/health' 200 'worker-health'
3636
check_prefix 'https://api.socialproof.dev/api/admin/stats' 4 'admin-auth-gate'
37+
38+
39+
warn_if_contains() {
40+
local url="$1" needle="$2" label="$3" message="$4"
41+
local body
42+
body=$(mktemp)
43+
curl -sS -L "$url" > "$body"
44+
if grep -Fq "$needle" "$body"; then
45+
echo "WARN [$label] $message" >&2
46+
else
47+
echo "OK [$label] $message"
48+
fi
49+
rm -f "$body"
50+
}
51+
52+
warn_if_contains 'https://socialproof.dev/' 'Sarah K.' 'marketing-mode' 'homepage still shows static fallback testimonial cards'

0 commit comments

Comments
 (0)