how it’s built/step 10 of 10

Deploy

GitHub to Vercel, with the settings and the domain.

This site deploys from GitHub to Vercel. Every push to main is a production deployment, and every other branch gets a preview.

  1. Push the repository to GitHub, then in Vercel choose Add New → Project and import it. Vercel detects Next.js; there's nothing to configure.

  2. Set the environment variables (Settings → Environment Variables):

    Variable Value
    POLIS_SITE your polis site, e.g. https://vdibart.polis.pub
    POLIS_DISPLAY your website, e.g. https://vdibart.com
    POLIS_REFRESH_SECRET openssl rand -hex 32, marked Sensitive
    POLIS_WEBHOOK_SECRET after step 5 below, marked Sensitive
  3. Add your domain (Settings → Domains) and point its DNS where Vercel says. Check: curl -s https://<your domain>/.well-known/polis-projection.

  4. Authorise it (step 9): Enhance → Your own website → Add a website.

  5. Add the webhook (step 8): Enhance → Webhooks → Add a webhook, When: you post, to https://<your domain>/polis-webhook. Put the secret in POLIS_WEBHOOK_SECRET and redeploy (a variable takes effect on the next deployment).

  6. Check it all: the webhook's test ping answers; the refresh answers {"refreshed":true}; validate.polis.pub names your domain as the authorised display.

Publish a post and watch it appear. That's the whole loop: write and sign on your polis site, and this website renders it in its own shape, refreshed by a signed webhook and provably yours.

Make it yours. Everything above is the shape I wanted, a simple blog with a tree and a network. The SDK doesn't care. Change app/page.tsx, keep the contract from step 4, and build whatever you want.