Deploying Next.js
Deploy a server-rendered Next.js app to Vorynza Host.
Vorynza runs Next.js with a plain next build — there's no separate adapter or compatibility
layer to fall behind, so any Next.js version Next itself supports works on Vorynza.
Requirement: output: "standalone"
Your next.config.js (or .ts/.mjs) must set:
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
};
export default nextConfig;Without this, the build fails with a clear error telling you to add it. Vorynza needs the standalone server output to run your app as a self-contained Node.js process.
How it's detected
Vorynza looks for next in your package.json dependencies and automatically sets:
| Setting | Value |
|---|---|
| Output directory | .next |
| Install command | npm install (or your detected package manager's equivalent) |
| Build command | npm run build |
| Runtime | Server-rendered |
You can override any of these from Settings → Git & build on your app.
What happens on deploy
- Vorynza clones your repo and runs your install/build commands in an isolated build environment.
.next/staticand yourpublic/folder are extracted and served directly from a CDN — these never touch your running server..next/standalone/server.jsis packaged and deployed as its own managed function for this deployment, running your Next.js server via the AWS Lambda Web Adapter (a thin process wrapper — you don't configure or see this directly).- Requests hit the CDN first: static assets are served from there, everything else is routed to your server.
Because each deployment gets its own function, rollback is instant — promoting an older deployment just repoints traffic at its already-running function, nothing rebuilds.
Cold starts
The very first request after a deployment (or after a period of inactivity) may take slightly longer while the function initializes — this shows up in logs as a labeled cold start. Traffic afterward is fast.
Environment variables
Server-only secrets, database URLs, and API keys all work as normal process.env reads in your
Next.js server code. See Environment variables for how to
set them and scope them to production vs. preview deployments.
Public env vars
Variables your client bundle needs (anything prefixed NEXT_PUBLIC_) must be set before
the build runs, since Next.js inlines them at build time. Set them on your app before
triggering a deployment — changing them afterward requires a new deployment to take effect.
