My personal webpages powered by Next.js, TypeScript and CSS Modules.
A single Next.js app serves all three domains. proxy.ts inspects the
request host and rewrites /{pathname} to /{domain}/{pathname}, so each domain
resolves to its own route tree under app/. Per-domain settings (title,
links, locales, theme) live in app/<domain>/config.ts.
The three are different kinds of site: diegocosta.com.br is a Markdown blog
(pt), diegocosta.me a photography showcase backed by the Unsplash API
(en), and diegocoxta.com a localized link hub (pt/en/es).
- ARCHITECTURE.md — tech stack, project layout, content & i18n, 404s.
- CONTRIBUTING.md — requirements, local setup, useful scripts, how to contribute.
- AGENTS.md — condensed guidance kept in context for AI coding agents.
Deployed on Vercel. Each domain is attached as a custom
domain to the same project; the host-based rewrite in proxy.ts does
the routing.
Say hello on Bluesky, Mastodon or email.
This repository is dual-licensed:
- Source code — MIT.
- Site content — everything under
public/(all three domains) is licensed CC BY 4.0; see LICENSE-CONTENT.md.