The runtime option allows you to select the JavaScript runtime used for rendering your route.
export const runtime = 'nodejs'
// 'nodejs'
export const runtime = 'nodejs'
// 'nodejs'
'nodejs'(default)'edge'(deprecated)
Good to know:
- The Edge Runtime is deprecated. Remove the
runtimeexport from your route files. See Edge Runtime Deprecated.- This option cannot be used in Proxy.
Source: docs/01-app/03-api-reference/03-file-conventions/02-route-segment-config/runtime.mdx