A practical contact workflow with Next.js and Supabase
Why a small portfolio still benefits from typed env checks, server-side validation, and a clean data boundary.

A contact form looks simple, but it is a real production boundary. It accepts public input, depends on environment secrets, and often creates the first business interaction with a potential client or recruiter.
The pattern I prefer is straightforward: validate environment variables at module load, keep secret keys server-side, rate limit the API route, and return clear states to the UI. Supabase fits well when submissions need to be stored, audited, or connected to later workflows.
For portfolios, this discipline matters because reliability is part of the impression. A beautiful interface that fails at the moment of contact loses the whole point of the page.