Next.js Quick Start
Deploy an existing Next.js app to Varity in one command. Varity detects your framework, picks the right hosting mode, and wires any backend services your app needs automatically. You do not change your code.
Prerequisites
Section titled “Prerequisites”- Node.js 20 or later
- npm, pnpm, or yarn
- Python 3.8+ (for the CLI)
Deploy your app
Section titled “Deploy your app”-
Install the CLI
Terminal window pipx install varitykit -
Open your project
Terminal window cd my-app -
Confirm it runs locally (optional)
Terminal window pnpm installpnpm devOpen http://localhost:3000 to confirm your app works before deploying.
-
Deploy to Varity
Terminal window varitykit app deployVarity detects that this is a Next.js project, chooses the right hosting mode (static export or dynamic runtime), builds your app, and deploys it.
-
Your app is live
The terminal shows your live URL:
https://varity.app/<app-name>/
What gets auto-wired
Section titled “What gets auto-wired”You do not import an SDK or change your code. When Varity deploys a Next.js project, it configures the backend automatically:
- Hosting mode - static export vs dynamic runtime is detected from your
next.config.js. - Databases and caches - if Varity detects a database client in your dependencies (for example Prisma,
pg,mongoose, orredis), it provisions the matching service and injects the connection details into your app’s environment at runtime. - Environment variables - any variables you set are injected into the deployed container. See Environment Variables.
- Live URL -
https://varity.app/<app-name>/, with HTTPS handled for you.
For the full list of detected frameworks and auto-wired services, see Supported Frameworks and Auto-wired Services.
Next Steps
Section titled “Next Steps”- Supported Frameworks: Everything Varity can detect and deploy
- Auto-wired Services: How databases and caches are provisioned
- Migrate from Vercel: Move an existing Vercel app in one command
- Deploy your app: Full deploy reference