Skip to main content

ness build

Creates optimized client and server production bundles.

ness build [options]
OptionDescription
--config <file>Use a custom Vite configuration
--mode <mode>Select a Vite environment mode
--sourcemap-clientEmit source maps for the browser bundle
--sourcemap-serverEmit source maps for the server bundle
--profileRun the build with the Node inspector
ness build
ness build --mode staging --sourcemap-server

The default output is written to build/client and build/server (RSC builds also add build/server/__ssr_build). The build also writes build/ness-manifest.json, which records the built routes, the cache profiles, and the deployment settings from ness.config.mjs — in RSC mode this comes from Ness's own route tree rather than React Router's build manifest, since RSC Framework Mode does not support a buildEnd hook. Use ness start to serve the completed build.