Moving from Vercel

miosa import vercel reads a Vercel project’s vercel.json and writes a plan. The plan names the MIOSA project, the production environment, one service, and the environment variable names the file declares. Review the plan, then apply it. Nothing is created until you apply.

Import a project

npm i -g @miosa/cli
miosa import vercel --from-file vercel.json --name shop --repo https://github.com/acme/shop
miosa import vercel --from-file vercel.json --out plan.json
miosa import vercel --apply --plan plan.json
FlagMeaning
--from-fileThe vercel.json to read
--nameThe MIOSA project name
--serviceThe service name inside the project (default web)
--repoThe Git URL of the service’s source
--regionus-east, us-west or us-mia; overrides the file
--intoImport into an existing MIOSA project
--applyCreate what the plan says
--resumeContinue an interrupted apply

What carries over

VercelMIOSA
The appA service built from the repository
RegionThe service region, when the file names one MIOSA has
Environment variable namesVariables with no values

Values are never copied. Set each value on the service, then deploy.

What does not carry over

The plan lists each of these with the reason: rewrites, redirects, headers, builds, the functions block, cleanUrls, trailingSlash, buildCommand, installCommand, outputDirectory and crons. Recreate what you need as service settings.

Where to go next

Was this page helpful?