runtime

API reference for the runtime route segment config option.

The runtime option allows you to select the JavaScript runtime used for rendering your route.

export const runtime = 'nodejs'
// 'nodejs'
  • 'nodejs' (default)
  • 'edge' (deprecated)

Good to know:

  • The Edge Runtime is deprecated. Remove the runtime export from your route files. See Edge Runtime Deprecated.
  • This option cannot be used in Proxy.