runtime
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' | 'edge'layout.js | page.js | route.js
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.