next start. Your pages and API routes live inside a single persistent process, and you deploy from GitHub with automatic PR previews. This guide maps your Vercel setup onto Miget and walks you through the move.
What maps to Miget
| On Vercel | On Miget |
|---|---|
| Serverless Next.js functions | Long-running Next.js app (next start) |
| Preview Deployment | PR preview via GitHub integration |
| Vercel Postgres | Miget managed PostgreSQL |
| Vercel KV | Miget Valkey (Redis-compatible) |
| Environment Variables | Miget environment variables |
Migration steps
Deploy the Next.js app
Follow the Next.js quickstart. Miget auto-detects Node from your
package.json, and next start binds to the injected PORT=5000. Connect your repository through the GitHub integration for auto-deploy on push and PR previews - the equivalent of Vercel preview deployments.Move your data
Provision Miget PostgreSQL to replace Vercel Postgres and Valkey to replace Vercel KV. Both inject connection strings for you:
DATABASE_URL for PostgreSQL and REDIS_URL for Valkey.Migrate your existing Postgres data with pg_dump from your Vercel database and pg_restore into the Miget database.Set environment variables
Copy your Vercel Environment Variables into Miget as environment variables.
DATABASE_URL, REDIS_URL, and PORT are injected automatically, so read them from the environment rather than hardcoding values.Point your domain
Add your custom domain and let Miget issue TLS automatically. See custom domains for DNS records and verification.
Next steps
Next.js quickstart
Deploy your Next.js app on Miget from scratch.
GitHub integration
Set up auto-deploy and PR previews.
Managed PostgreSQL
Provision a database and read
DATABASE_URL.Valkey
Add a Redis-compatible cache via
REDIS_URL.Environment variables
Manage secrets and config for your app.
Fair Scheduler
Understand how Miget shares compute across your apps.

