Nuxt/docs/content/6.deployment/presets/server.md
pooya parsa 6318438415
feat(nitro, vite): use native module (#252)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2021-07-15 11:38:06 +02:00

495 B

Node.js server

  • Default preset if none is specified or auto-detected
  • Loads only the chunks required to render the request for optimal cold start timing
  • Useful for debugging

Entrypoint

With { preset: 'server' } the result will be an entrypoint that launches a ready-to-run Node server.

Example

node .output/server/index.mjs
# > Load chunks/nitro/server (10.405923ms)
# > Cold Start (26.289817ms)
# Listening on http://localhost:3000

curl http://localhost:3000