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).

Deploy with Vercel

2. Set environment variables

In your Vercel project settings, add the following environment variables:

VariableValue
SEO_PUBLISHER_TOKENGenerate with openssl rand -hex 32
SEO_PUBLISHER_SECRETGenerate with openssl rand -hex 32
DATABASE_URLYour Postgres connection string
NEXT_PUBLIC_SITE_URLhttps://your-site.com
NEXT_PUBLIC_SITE_NAMEYour Site Name

3. Run migrations

In your local clone or via Vercel's shell:

terminalbash
npm run db:generate
npm run db:migrate

4. Point inkieai.com at your deployment

In your inkieai.com dashboard:

  1. Go to Site Settings → Publish Target
  2. Choose Next.js (API)
  3. Enter your Webhook URL: https://your-site.com/api/internal/seo/publish
  4. Paste the Publisher Token and Publisher Secret you generated
  5. 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_posts
  • lib/blog/queries.ts — DB queries (upsert, list, get by slug)
  • app/api/internal/seo/publish/route.ts — Webhook receiver with HMAC verification
  • app/api/internal/seo/index/route.ts — Index endpoint for duplicate prevention
  • app/blog/page.tsx and app/blog/[slug]/page.tsx — Blog surface pages
  • app/sitemap.ts and app/robots.ts — SEO helpers