vinext
Documentation menu

Documentation

Deploy to other platforms

Build a standalone Node server or use Nitro's Vite plugin for more deployment targets.

Standalone Node.js

Set output: "standalone" in next.config. A production build then emits a self-contained server under dist/standalone.

pnpm exec vinext build
node dist/standalone/server.js

Set PORT and HOST to change the default bind address. Unlike Next.js standalone output, vinext uses HOST, not HOSTNAME.

Nitro adapters

Add Nitro when you need a deployment preset for Vercel, Netlify, AWS, Deno Deploy, Azure, or another supported host.

import { nitro } from "nitro/vite";
import { defineConfig } from "vite";
import vinext from "vinext";

export default defineConfig({
  plugins: [vinext(), nitro()],
});

Follow the Nitro deployment guide for host-specific presets and output. On Cloudflare, prefer vinext's native integration for direct bindings, caching, image optimization, and the one-command deployment workflow.