UNPKG

next

Version:

The React Framework

25 lines (19 loc) 735 B
--- title: runtime description: API reference for the runtime route segment config option. --- The `runtime` option allows you to select the JavaScript runtime used for rendering your route. ```tsx filename="layout.tsx | page.tsx | route.ts" switcher export const runtime = 'nodejs' // 'nodejs' ``` ```js filename="layout.js | page.js | route.js" switcher 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](/docs/messages/edge-runtime-deprecated). > - This option cannot be used in [Proxy](/docs/app/api-reference/file-conventions/proxy).