# Migrating from Vercel

Most Vercel projects deploy on Percher with minimal changes.

Works out of the box: Next.js (Pages and App Router), SvelteKit, Remix, Nuxt, Astro, static sites (Vite/React/Vue), API routes (Express/Hono/Fastify), environment variables, and custom domains (paid plans).

Needs changes:
- Vercel Serverless Functions -> run as a normal Node server (Express/Hono). Paid plans stay running; Free apps sleep after 20 idle minutes and wake on the next request.
- Vercel Edge Functions -> not supported; use standard API routes
- Vercel KV / Postgres / Blob -> PocketBase (`mode = "pocketbase"`) or an external service
- `vercel.json` rewrites/redirects -> run `percher import` to translate supported rules, then review the generated `percher.toml`
- Vercel Cron Jobs -> `[crons]` in percher.toml
- Vercel Analytics -> Percher's built-in cookie-free Analytics tab (the app owner needs Starter, Maker or Max), or keep a third-party service if you need event-level product analytics
- ISR / on-demand revalidation -> works; Next.js ISR runs in the container

Steps:
```sh
cd my-vercel-app
bunx percher import               # imports supported vercel.json settings
bunx percher init                 # creates config if import did not create it
# add a health endpoint if missing, e.g. Next.js app/api/health/route.ts
bunx percher env set DATABASE_URL=...
bunx percher publish
bunx percher domains add myapp.com
```

Full guide: https://percher.app/docs/migrate-vercel
