Kumasy-Marketing/app/lib/site.ts

32 lines
1.2 KiB
TypeScript

/**
* One source of truth for the canonical origin. robots.ts, sitemap.ts,
* layout.tsx and the structured data all read from here — a mismatch
* between any two of them is the kind of SEO bug that only surfaces
* weeks later in Search Console.
*
* Vercel sets VERCEL_PROJECT_PRODUCTION_URL to the production domain on
* every deployment, including previews, so preview builds emit canonicals
* pointing at production rather than at their own throwaway URL.
*/
const PRODUCTION_URL =
process.env.NEXT_PUBLIC_SITE_URL ??
(process.env.VERCEL_PROJECT_PRODUCTION_URL
? `https://${process.env.VERCEL_PROJECT_PRODUCTION_URL}`
: "https://kumasy.de");
/** Canonical origin, never with a trailing slash. */
export const SITE_URL = PRODUCTION_URL.replace(/\/+$/, "");
export const SITE_NAME = "Kumasy";
/** Contact address, used in both the footer and the structured data. */
export const CONTACT_EMAIL = "info@kumasy.de";
/**
* The monthly price, in one place because it appears in the pricing
* section, the FAQ copy and the Product structured data. If it changes
* and the schema still says 150, Google flags the mismatch.
*/
export const PRICE_MONTHLY = 150;
export const PRICE_PER_BOOKING = 0.5;
export const PRICE_CURRENCY = "EUR";