Skip to content

test: www redirect expectations match the function again - #17

Merged
ralyodio merged 1 commit into
masterfrom
fix/pwa-sweep-tests
Nov 8, 2026
Merged

ralyodio merged 1 commit into
masterfrom
fix/pwa-sweep-tests

Conversation

@ralyodio

@ralyodio ralyodio commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Master CI has been red since #16. The sweep rewrote the expected values in apps/web/src/lib/www-redirect.test.ts to icemap.pwa.pit.world, but wwwRedirectLocation just strips www. from the incoming host, so www.icemap.app correctly goes to https://icemap.app/.... Restored those expectations, kept the non-www 'apex passes through' case, and added www.icemap.pwa.pit.world -> https://icemap.pwa.pit.world/map. Test-only; no runtime change.

Local: lint, typecheck, test green (9 pass).

🤖 Generated with Claude Code

The domain sweep (#16) rewrote the expected locations to
icemap.pwa.pit.world, but wwwRedirectLocation only strips www. from the
host it was given, so www.icemap.app goes to https://icemap.app/...
Restores those expectations and adds the pwa host's own www case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown

ThreatCrush Security Scan

3 finding(s)

HIGH/CRITICAL: 1 | LOW: 2

Severity Rule Location
HIGH js-ssrf-outbound-request apps/web/src/app/api/media/[...path]/route.ts:28
LOW secret-generic-credential packages/supabase/supabase/config.toml:271
LOW secret-generic-credential packages/supabase/supabase/config.toml:303

Snippets are redacted; ThreatCrush never prints matched credential material.

@ralyodio
ralyodio merged commit d3516b1 into master Nov 8, 2026
6 checks passed
@ralyodio
ralyodio deleted the fix/pwa-sweep-tests branch November 8, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant