Skip to content

Migrate a Next.js app from Vercel to Arkor

Moving off Vercel doesn't have to be a leap. Deploy the same repository to Arkor while Vercel keeps serving, check it at its own address, and switch the domain only when you're ready.

Start deploying

Before you start

  • Next.js 16.3+. Arkor builds with Turbopack, which is what next build uses by default in Next.js 16.
  • What needs a change. Remove experimental.optimizeCss, build with Turbopack rather than --webpack, and replace native Node.js addons, child_process or node:vm. WebSockets are not supported. Next.js support has the full list.
  • The free plan or Pro. Your personal team can deploy on the free plan, with no credit card: $10 of usage is included every month as a launch offer (standard: $5), and any change will be announced in advance. Once a month's usage reaches that amount, the team's projects are paused until the next month begins. The free plan has one custom domain per project. Any other team needs Pro: $20 a month per team, with $20 of usage included and up to five custom domains per project.

1. Deploy beside Vercel

Sign in with GitHub, install the Arkor GitHub App on the account that owns the repository, and import it. Your personal team can do this at once on the free plan; for any other team, choose Pro first. Arkor creates the project and starts the first build of your production branch. Nothing changes on Vercel.

After the build, validation and any configured GitHub checks pass, the app is published at https://<project>.arkor.app. The quickstart shows each screen.

The arkor.app address is for deployment checks. Use a custom domain you own for production.

2. Copy your environment variables

Open the project's Settings › Environment variables and choose Paste .env to add many at once. Mark passwords and API keys as Secret. Changes apply to the next deployment, so deploy again once they are in.

If you copy your variables over from Vercel, leave out NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH and NEXT_PUBLIC_VERCEL_OBSERVABILITY_CLIENT_CONFIG: they point Web Analytics at Vercel's paths. See Environment variables.

3. Keep what Vercel ran for you

  • Cron jobs declared in vercel.json run on their schedules. Add a CRON_SECRET variable to have each call authorized. See Cron jobs.
  • Web Analytics and Speed Insights keep working with @vercel/analytics and @vercel/speed-insights, and their numbers appear in the Arkor dashboard. See Web Analytics.
  • The visitor's country arrives as x-arkor-ip-country; read it where you read x-vercel-ip-country.

4. Compare the two

Open your pages at the arkor.app address and on Vercel, and compare how fast they respond from where your visitors are. Your team's Usage page in the dashboard shows what your projects use, so you can estimate the bill before you move.

5. Move your domain

In the project's Settings › Domains, add your hostname and publish the TXT record Arkor shows to prove it is yours. Then point the hostname at domains.arkor.app with a CNAME record. The certificate is issued once the record is in place. See Custom domains.

Keep the Vercel project until you're confident. Pointing the DNS record back is how you roll back.

Frequently asked questions

Do I need to change my code to migrate from Vercel?

Usually not. Arkor runs next build on your repository as it is. The changes some apps need, such as moving off a webpack build, are listed on the Next.js support page in the docs.

Can I keep Vercel running while I test Arkor?

Yes. Arkor serves each project at its own arkor.app address, so both run side by side until you move the domain.

How do I roll back?

Keep the Vercel project deployed until you're confident, and point your domain's DNS record back at Vercel if you need to.

Do cron jobs and analytics need changes?

No. Cron jobs declared in vercel.json run on Arkor, and @vercel/analytics and @vercel/speed-insights report to the Arkor dashboard without changes.

Start deploying