Next.js starter
examples/next-site: articles, draft mode and revalidation.
The starter reads the delivery API through the SDK. Set RAFTERBASE_URL, RAFTERBASE_SPACE, RAFTERBASE_ENV, RAFTERBASE_DELIVERY_TOKEN, RAFTERBASE_PREVIEW_TOKEN and RAFTERBASE_WEBHOOK_SECRET. Point a webhook for entry.publish at /api/revalidate; the route verifies the signature before revalidating. Draft mode uses a preview link.