Project/Next.js platform

This portfolio

Content platform behind this site

More than a static page: a Next.js App Router site with its own admin CMS, visitor analytics, contact pipeline and offline support. Every page is statically generated and revalidated in the background, and it keeps working from local content if the database or any other service goes down.

Built with
  • Next.js
  • React
  • TypeScript
  • Supabase
  • PostgreSQL
  • Tailwind CSS
  • Docker
What sets it apart
Built like a production service: every external dependency has a timeout and a fallback, so a failure never renders an empty page.

§ 01

Problem

A portfolio that pulls content from a database is only as reliable as that database. I wanted content I could edit without a deploy, without the site ever going blank when a service is slow or down.

§ 02

Architecture

  1. 01

    Rendering

    Next.js App Router with server components; public pages are statically generated and revalidated in the background, so the database is never on a visitor's request path.

  2. 02

    Content layer

    Supabase tables override typed local data files. Rows are validated and mapped field by field; any error, timeout or empty table falls back to the local copy.

  3. 03

    Admin

    A password-protected /admin (constant-time check, signed httpOnly session) edits every table through Server Actions and revalidates only the pages that table feeds.

  4. 04

    Edge controls

    A proxy reads a remote switch to serve a 503 maintenance page or redirect the site, cached in memory with a short timeout so it can never slow the site down.

  5. 05

    Visitors and contact

    Visits are recorded on idle with bot filtering and time-on-site via sendBeacon; contact messages are stored first, then mailed through a shared relay.

§ 03

Key decisions

Fallback over failure

Every external call - Supabase, the mail relay, the status switch, GitHub - has a timeout and a defined fallback, so the worst case is slightly stale content, not an error page.

Very little client JavaScript

Interactive pieces are small islands; dialogs use native <dialog> and the mobile menu uses the Popover API, so focus trapping and Esc handling come from the browser.

Strict headers

A Content Security Policy, HSTS, frame restrictions and a locked-down Permissions-Policy are set for every route.

§ 04

The product

Server components by default, with a handful of small client islands for dialogs, the menu, the theme and the contact form. Supabase stores editable content, visitor records and contact messages; a password-protected admin edits every content table and refreshes the affected pages on save. A proxy can switch the whole site into a maintenance page or redirect it without a deploy, and a service worker keeps pages readable offline.

My part

  • ISR pages with a local content layer that takes over on any Supabase error, timeout or empty table.
  • Admin CMS with signed session cookies, constant-time password check and per-table revalidation.

Where it is now

Runs on Vercel or as a standalone Docker image, installable as a PWA, with editable content, analytics and messages in one admin.