Runtimes

Bun

使用 Bun 运行时运行 Nitro 应用。

预设:bun

¥Preset: bun

Nitro 输出与 Bun 运行时兼容。使用默认 Node.js 时,你也可以在 bun 中运行输出,使用 bun 预设具有更好的优化优势。

¥Nitro output is compatible with Bun runtime. While using default Node.js you can also run the output in bun, using bun preset has advantage of better optimizations.

使用 bun preset 构建并使用 bun 作为预设后,你可以使用以下命令在生产环境中运行服务器:

¥After building with bun preset using bun as preset, you can run server in production using:

bun run ./.output/server/index.mjs
Read more in bun.sh.