fix(deploy): NEXT_PUBLIC_SITE_URL auf Apex-Domain neomint.com #26
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/apex-canonical-url"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Kontext
Caddy auf dem VPS wurde am 2026-05-09 von HTTP-301-Redirect auf Reverse-Proxy umgestellt:
https://neomint.com/...liefert jetzt das nm/website-Backend aus, ohne die Browser-URL zu aendern. Damit auch die HTML-Metadaten (canonical, og:url, hreflang) und die Sitemap auf die Apex-Domain verweisen, wird die Build-Time-EnvNEXT_PUBLIC_SITE_URLumgestellt.Aenderung
.forgejo/workflows/deploy.yml, Zeile 45:NEXT_PUBLIC_SITE_URL: https://nm.neomint.com/websiteNEXT_PUBLIC_SITE_URL: https://neomint.comNEXT_PUBLIC_BASE_PATHbleibt unveraendert auf/website, weil git-pages weiterhin unter/website/ausliefert. Der Caddy-Block fuerneomint.commacht conditional path-rewrite (/<x>->/website/<x>,/website/*durchlassen) plusheader_up Host nm.neomint.com, sodass Assets korrekt durchgereicht werden.Konsequenzen
Nach Merge und naechstem Deploy:
<link rel="canonical">zeigt aufhttps://neomint.com/de/https://neomint.com/...neomint.com(Caddy-Reverse-Proxy live)nm.neomint.com/website/bleibt funktional erreichbar; Suchmaschinen werden die Apex-Domain als Canonical bevorzugenVerifikation nach Deploy