(raw: string | undefined)
| 32 | import { logger } from '@/util/logger' |
| 33 | |
| 34 | function normalizeReferrer(raw: string | undefined): string | null { |
| 35 | if (!raw) return null |
| 36 | const trimmed = raw.trim().slice(0, 50) |
| 37 | return trimmed || null |
| 38 | } |
| 39 | |
| 40 | interface PageProps { |
| 41 | searchParams?: Promise<{ |