Static Sites
Best for: React, Vue, Next.js static exports, documentation, landing pages
Features:
- Global CDN distribution
- Instant cache invalidation
- Automatic SSL certificates
- Fixed profile pricing
varitykit app deployDeploy your application to Varity with one command.
Install the CLI
pipx install varitykitBuild your project
npm run buildDeploy
varitykit app deployYour app is live!
Varity will output your live URL:
✓ Deployed successfully!✓ URL: https://your-app.varity.app✓ Build time: 1m 23s✓ Status: LiveWhen you run varitykit app deploy:
npm run build)https://varity.app/<name>/; dynamic apps use https://<name>.varity.app/All of this happens automatically.
Choose the right hosting for your application type:
Static Sites
Best for: React, Vue, Next.js static exports, documentation, landing pages
Features:
varitykit app deployDynamic Apps
Best for: Full-stack apps, APIs, real-time applications, databases
Features:
varitykit app deploy --hosting dynamicCredentials are managed automatically by Varity. Optionally set your app ID:
# Optional: Your Varity App IDNEXT_PUBLIC_VARITY_APP_ID=<your-app-id>See Environment Variables for the complete list and Managed Credentials for how credential auto-provision works.
Always test your build works locally:
npm run buildnpm run startVisit http://localhost:3000 and verify everything works.
View your deployment history:
varitykit app listOutput:
ID Status URL Deployeddeploy-1737491000 live https://your-app.varity.app 2 hours agodeploy-1737484800 archived https://your-app-v2.varity.app 1 day agodeploy-1737398400 archived https://your-app-v1.varity.app 2 days agoRevert to a previous deployment:
varitykit app rollback deploy-1737484800Your app will instantly switch to the selected version. See Rollback a Deployment for a full walkthrough, including how to find deployment IDs and handle caveats around environment variables and database migrations.
Check the details of a specific deployment:
varitykit app info deploy-1737491000View overall deployment status:
varitykit app statusEvery deployment gets a public URL. URL format depends on hosting type:
varitykit app deploy --name my-app# Static hosting → https://varity.app/my-app/# Dynamic hosting → https://my-app.varity.app/See Custom Domains for the current status of bring-your-own domains.
Verify your build works locally:
npm run buildCheck the build output directory exists:
.next/ or out/dist/ or build/dist/Credentials are auto-provided. If you see this error, run varitykit doctor to check your setup.
Check your internet connection:
varitykit doctorIf issues persist, try deploying with verbose output:
varitykit app deploy --verbose| Option | Default | Description |
|---|---|---|
--hosting | static | Hosting type: static or dynamic |
--path | . | Project directory |