Build /Servers
Nitro extends your Vite application with a production-ready server, compatible with any runtime. Add server routes to your application and deploy many hosting platform with a zero-config experience.
import { defineConfig } from 'vite' import { nitro } from 'nitro/vite' export default defineConfig({ plugins: [nitro()], nitro: { serverDir: "./server" } })
import { defineConfig } from 'nitro' export default defineConfig({ preset: "node", serverDir: "./server", routeRules: { "/api/**": { cache: true } } })
Fast
Enjoy the fast Vite 8 (rolldown powered) development experience with HMR on the server and optimized for production.
Agnostic
Deploy the same codebase to any deployment provider with zero config and locked-in.
Minimal
Nitro adds no overhead to runtime. Build your servers with any modern tool you like.
Performance
Built for speed
Bare metal perf
Using compile router, and fast paths for request handling.
Minimum install Size
Minimal dependencies. No bloated node_modules.
Small and portable output
Standard server builds produce ultra-small output bundles.
FAST builds
Cold production builds complete in seconds, not minutes.