Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
7 changes: 3 additions & 4 deletions docs/analytics.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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: `<e-mail ou canal>`.
- Failed deployment notifications are enabled.

**Uptime** — Better Stack

- Monitors `<URL de produção>` and `<URL>/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.
2 changes: 1 addition & 1 deletion lib/site.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
Loading