Runtimes
Deno
Run Nitro apps with Deno runtime.
Preset: deno_server
You can build your Nitro server using Node.js to run within Deno Runtime in a custom server.
# Build with the deno NITRO preset
NITRO_PRESET=deno_server npm run build
# Start production server
deno run --unstable --allow-net --allow-read --allow-env .output/server/index.ts
To enabling Node.js compatibility, you need to upgrade to Deno v2, and a compatibility date set to 2025-01-30
or later in your nitro configuration file.
export default defineNitroConfig({
compatibilityDate: "2025-01-30",
})