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' | 'edge'
  • 'nodejs' (default)
  • 'edge'

Good to know:

  • Using runtime: 'edge' is not supported for Cache Components.
  • This option cannot be used in Proxy.