Serve your web apps for production with one serve, after you’ve successfully run one build.
It takes the following arguments:
Terminal
One comes with a serve command that is powered by Hono.
If you are only using SPA and SSG routes and aren’t using loaders, you don’t need to use one serve if you don’t want to - you can statically serve the results of dist/client using any server you’d like.
You must run a one build before serve.
For production deployments under heavy load, one serve supports cluster mode. This forks multiple Node.js worker processes that share the same port, distributing requests across CPU cores.
Terminal
Each worker handles requests independently. If a worker crashes, it automatically restarts with backoff protection to prevent crash loops.
one dev instead)At 500 concurrent connections (production-style load test):
You can also run your production server programmatically:
Which takes options:
Edit this page on GitHub.