--- import { getPublicConfig } from "../lib/config"; type Props = { title: string; description: string; canonicalPath: string; ogImageUrl?: string; }; const { title, description, canonicalPath, ogImageUrl } = Astro.props; const cfg = getPublicConfig(); const siteUrl = (cfg.siteUrl || "http://localhost:4321").replace(/\/$/, ""); const canonicalUrl = `${siteUrl}${canonicalPath.startsWith("/") ? canonicalPath : `/${canonicalPath}`}`; ---