This page is also available as Markdown: request this page's URL with an
Accept: text/markdown header. For an index of Next.js documentation, see /docs/llms.txt.runtime
Last updated April 30, 2026
The runtime option allows you to select the JavaScript runtime used for rendering your route.
layout.tsx | page.tsx | route.ts
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.
Was this helpful?