export const runtime

The route segment option that picks the runtime for a page, layout or Route Handler: 'nodejs' (default) or 'edge'.

In more detail

Set it per route, for example edge for a fast geolocation endpoint and nodejs for a PDF report. Anything the route imports must work in the chosen runtime.

Example

export const runtime = 'edge';

Related terms

Taught in

References