Next.js Starter Template
Deploy a minimal, SEO-optimized blog to Vercel and start receiving articles from inkieai.com in under 5 minutes.
1. Deploy the template
Click the button below to create a new Vercel project from the starter template. You will need a Postgres database — we recommend Neon (free tier works great).
2. Set environment variables
In your Vercel project settings, add the following environment variables:
| Variable | Value |
|---|---|
| SEO_PUBLISHER_TOKEN | Generate with openssl rand -hex 32 |
| SEO_PUBLISHER_SECRET | Generate with openssl rand -hex 32 |
| DATABASE_URL | Your Postgres connection string |
| NEXT_PUBLIC_SITE_URL | https://your-site.com |
| NEXT_PUBLIC_SITE_NAME | Your Site Name |
3. Run migrations
In your local clone or via Vercel's shell:
terminalbash
npm run db:generate
npm run db:migrate4. Point inkieai.com at your deployment
In your inkieai.com dashboard:
- Go to Site Settings → Publish Target
- Choose Next.js (API)
- Enter your Webhook URL:
https://your-site.com/api/internal/seo/publish - Paste the Publisher Token and Publisher Secret you generated
- Click Verify — the dashboard will ping your index endpoint and confirm the connection
5. Verify from the dashboard
Once connected, run a manual article generation or wait for your next scheduled run. The article should appear on /blog within a few minutes.
Manual setup (existing Next.js app)
If you already have a Next.js app and want to add inkieai.com blog support, copy the key files from the template into your project:
lib/db/schema.ts— Drizzle schema for blog_postslib/blog/queries.ts— DB queries (upsert, list, get by slug)app/api/internal/seo/publish/route.ts— Webhook receiver with HMAC verificationapp/api/internal/seo/index/route.ts— Index endpoint for duplicate preventionapp/blog/page.tsxandapp/blog/[slug]/page.tsx— Blog surface pagesapp/sitemap.tsandapp/robots.ts— SEO helpers