Current (2026-06-01): Vercel env NEXT_PUBLIC_SERVER_URL (Production) is set to
https://nord-lerchenau.vercel.app — the temporary Vercel URL.
Why: svnord-lerchenau.de still points at the OLD WIX site. Using it as the
server URL broke every CMS media URL (/api/media/file/...), SEO canonical/OG
tags, sitemap, robots, and Payload preview/revalidate links.
When the custom domain is migrated to this Vercel project (e.g. svnord-lerchenau.de
or a new domain), do all of:
vercel env rm NEXT_PUBLIC_SERVER_URL production --yesprintf 'https://<new-domain>' | vercel env add NEXT_PUBLIC_SERVER_URL production(repeat forpreviewif desired)- Redeploy prod (it's a
NEXT_PUBLIC_var → baked at build time). - Update the hardcoded WIX fallbacks still in code:
app/(frontend)/layout.tsx:54components/seo/SiteSchema.tsx:4(change default"https://svnord-lerchenau.de"→ new domain)
Note: sport hero images (Gymnastik/Volleyball/Ski) are served from static
/public/sport/*-hero.jpg, independent of this var. CMS-uploaded media (portraits,
sponsors, future Mannschaftsfotos) depends on it being correct + the Vercel Blob
store (nord-lerchenau-blob) being linked.