What you get for a Next.js app
Build and deploy
Connect GitHub, GitLab, Bitbucket or Gitea. Pushes build a Dockerfile with BuildKit and cut traffic over only when the readiness probe passes.
Environment and build-time vars
Env vars are encrypted per app. NEXT_PUBLIC_* values are inlined at build time, so set them before the build, which the migration runbook covers.
Database next to the app
Create Postgres or Redis as a managed resource with scheduled, verified backups and link it to the app.
Self-hosting Next.js, honestly
What changes when you leave a managed platform.From repo to HTTPS
1
Add a Dockerfile
A standard multi-stage Next.js Dockerfile with output set to standalone keeps the image small.
2
Connect the repo and set env vars
Set build-time variables first, then runtime secrets.
3
Add your domain
Point DNS at the server and Caddy issues and renews the certificate.
4
Open a pull request
A preview environment deploys and is torn down when the pull request closes.
Frequently asked questions
Does it support the App Router and server components?
Does it support the App Router and server components?
It runs your container, so anything that runs in a Node container works. Levelrail does not run a separate Next.js-specific runtime.
How do preview environments work?
How do preview environments work?
A pull request opened or updated deploys a preview. Closing the pull request tears it down, whether or not it merged.
Can I run it on one small VPS?
Can I run it on one small VPS?
Yes. A single node is the best tested path.
Is there a migration guide?
Is there a migration guide?
Yes, a runbook for moving a Vercel-hosted Next.js app, with an inventory, a cutover plan and the gaps.