Deploy
This site deploys from GitHub to Vercel. Every push to main is a production deployment, and every other branch
gets a preview.
-
Push the repository to GitHub, then in Vercel choose Add New → Project and import it. Vercel detects Next.js; there's nothing to configure.
-
Set the environment variables (Settings → Environment Variables):
Variable Value POLIS_SITEyour polis site, e.g. https://vdibart.polis.pubPOLIS_DISPLAYyour website, e.g. https://vdibart.comPOLIS_REFRESH_SECRETopenssl rand -hex 32, marked SensitivePOLIS_WEBHOOK_SECRETafter step 5 below, marked Sensitive -
Add your domain (Settings → Domains) and point its DNS where Vercel says. Check:
curl -s https://<your domain>/.well-known/polis-projection. -
Authorise it (step 9): Enhance → Your own website → Add a website.
-
Add the webhook (step 8): Enhance → Webhooks → Add a webhook, When: you post, to
https://<your domain>/polis-webhook. Put the secret inPOLIS_WEBHOOK_SECRETand redeploy (a variable takes effect on the next deployment). -
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.
app/page.tsx, keep the contract from step 4,
and build whatever you want.