diff --git a/AGENTS.md b/AGENTS.md index ef54388..a3fe618 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -18,10 +18,11 @@ Operational context for this repo. Commands, scripts, and folder layout live in - Interface language comes from the route, not from cookies: PT lives at the root in `app/(pt)` (no prefix, no `/pt` route) and EN lives under `/en` in `app/(en)/en`. Each group has its own root layout rendering `components/layout/site-shell.tsx` with its `lang`. No `Accept-Language` detection or automatic redirects. - `/alunos` is the interim certificate check for certificates already issued. It stays PT-only, `noindex`, outside `localizedPages` (no hreflang), and out of any sitemap. When the Trilha certificate lookup exists, replace this route with a redirect to that lookup. - Analytics via PostHog in Production only; event contract in [`docs/analytics.md`](docs/analytics.md) — document new events there first. +- Production domain is `https://danieldcs.com` (apex), the same value as `siteUrl` in `lib/site.ts`. `www` and `danieldcs-com.vercel.app` redirect with 308 on Vercel, not in the code. ## Out of V1 -Do not add these unless the current ticket asks for them: custom domain `danieldcs.com`, CMS, required PR reviews, CODEOWNERS. +Do not add these unless the current ticket asks for them: CMS, required PR reviews, CODEOWNERS. ## Workflow diff --git a/README.md b/README.md index 4022356..1860b79 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # danieldcs.com -Personal website of Daniel Castro. Static-first Next.js app, hosted on Vercel. +Personal website of Daniel Castro, live at https://danieldcs.com. Static-first Next.js app, hosted on Vercel. ## Stack diff --git a/docs/analytics.md b/docs/analytics.md index eb39b3b..d5a8ac2 100644 --- a/docs/analytics.md +++ b/docs/analytics.md @@ -92,7 +92,7 @@ Document name and properties here first. Stable `snake_case`; identifiers only; ## Operations -Configuration outside this repo that the code and the privacy policy depend on. +Configuration outside this repo that the code and the privacy policy depend on. Operational details (channels, accounts) stay out of this repository. **PostHog** — project `Daniel's Blog` (US Cloud) @@ -106,9 +106,8 @@ Configuration outside this repo that the code and the privacy policy depend on. - `NEXT_PUBLIC_POSTHOG_KEY` is set for **Production only**; preview and development send nothing. - Changing the key requires a production redeploy (`NEXT_PUBLIC_*` is inlined at build time). -- Failed deployment notifications: ``. +- Failed deployment notifications are enabled. **Uptime** — Better Stack -- Monitors `` and `/en`; alerts go to Slack (`<#canal>`). -- Switch the monitored URLs to `danieldcs.com` in the Migration & Launch milestone. +- Monitors `https://danieldcs.com`; alerts go to Slack. diff --git a/lib/site.ts b/lib/site.ts index a5f5da9..b426445 100644 --- a/lib/site.ts +++ b/lib/site.ts @@ -1,6 +1,6 @@ export const siteName = 'danieldcs.com' -/** Canonical origin of the site, including in previews before the launch. */ +/** Canonical origin of the site. Previews use it too, so canonical never points at a preview URL. */ export const siteUrl = 'https://danieldcs.com' export function absoluteSiteUrl(pathname: string): string {