Docs
Sign in
migrate

Migrate from Vercel

Move a Next.js app from Vercel to a long-running Wokku app.

Updated 2026-11-07 Edit on GitHub ↗

On Wokku your app runs as one long-running server, so it has no cold starts or function timeouts. For Next.js the move is mostly config and DNS.

Concept map

Vercel Wokku
Serverless / Edge Functions Routes inside one next start server
Environment Variables Environment Variables
Vercel Postgres / Neon Postgres add-on
Vercel KV / Upstash Redis Redis add-on
Cron Jobs Scheduled Tasks
Preview Deployments Preview Deploys
Domains Custom Domains

1. Run it as a server

Follow the Next.js guide: keep "build": "next build" and "start": "next start". API routes and server actions keep working inside that server. Code pinned to the Edge runtime may need export const runtime = "nodejs".

2. Copy environment variables

bash
wokku apps:create my-app
vercel env pull .env.vercel --environment=production
grep -v '^#' .env.vercel | grep -v '^NEXT_PUBLIC_' | grep '=' \
  | sed 's/="\(.*\)"$/=\1/' \
  | while IFS= read -r pair; do wokku config:set my-app "$pair"; done

NEXT_PUBLIC_* values are inlined at build time, and Wokku config vars aren’t available during the build. Commit them in .env.production instead.

3. Move data

  • Postgres — dump it and import into a dedicated Wokku database. See Move a database.
  • Redis/KV — wokku addons:shared:enable my-app redis sets REDIS_URL. Copy data across only if it isn’t a cache.

4. Deploy and switch the domain

bash
git remote add wokku git@git.wokku.cloud:my-app
git push wokku main

Check https://my-app.wokku.app, then move your domain. See Custom Domains.

Gotchas

  • Edge middleware and @vercel/* packages — Vercel-only APIs need a Node equivalent.
  • Scaling — you scale processes and resources, not per-request functions.
  • Vercel Cron — re-create each vercel.json cron as a scheduled task.
Was this page helpful?