next.js/errors/edge-runtime-deprecated.mdx
edge-runtime-deprecated.mdx24 lines591 B
---
title: Edge Runtime Deprecated
---

## Why This Warning Occurred

One or more routes in your application use `export const runtime = 'edge'`, which is deprecated.

## How to Migrate

Remove the `runtime` export from your route files:

```diff
- export const runtime = 'edge'
```

The Node.js runtime is the default, so no replacement is needed.

This applies to all route files that support the `runtime` segment config: `page.ts`, `layout.ts`, `route.ts`, and API routes.

## Useful Links

- [Route Segment Config](/docs/app/api-reference/file-conventions/route-segment-config/runtime)
Quest for Codev2.0.0
/
SIGN IN