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"
  }
})

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

~NativeRPS

Bare metal perf

Using compile router, and fast paths for request handling.

Tinydeps

Minimum install Size

Minimal dependencies. No bloated node_modules.

‹ 10kB

Small and portable output

Standard server builds produce ultra-small output bundles.

‹ 1sec

FAST builds

Cold production builds complete in seconds, not minutes.