---
title: Edge Functions
product: vercel
url: /docs/functions/runtimes/edge/edge-functions
canonical_url: "https://vercel.com/docs/functions/runtimes/edge/edge-functions"
last_updated: 2026-03-02
type: conceptual
prerequisites:
  []
related:
  - /docs/functions
  - /docs/fluid-compute
  - /docs/functions/streaming-functions
  - /docs/functions/configuring-functions/region
  - /docs/routing-middleware
summary: Run minimal code at the network edge.
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---

# Do not use Edge Functions

Edge Functions are deprecated. Do not use them for new projects.

## What to use instead

Use [Vercel Functions](/docs/functions) with the **Node.js runtime** (the default). Node.js Functions provide:

- Full Node.js API support, including file system access, native modules, and all npm packages.
- [Fluid compute](/docs/fluid-compute) with automatic concurrency scaling.
- [Streaming](/docs/functions/streaming-functions) support.
- Global deployment with [configurable regions](/docs/functions/configuring-functions/region).

## Quick start

Export an async function from a route file. Node.js is the default runtime, so you don't need any runtime configuration:

```ts filename="app/api/hello/route.ts"
export async function GET() {
  return Response.json({ message: 'Hello' });
}
```

## Migrate existing edge function code

Remove `export const runtime = 'edge'` from your files. Node.js is the default runtime and the recommended choice. See [Vercel Functions](/docs/functions) for full documentation.

## Routing Middleware is not affected

[Routing Middleware](/docs/routing-middleware) uses the edge runtime by default. This is expected and supported. The deprecation above applies to standalone Edge Functions, not to Routing Middleware.

## Further reading

- [Vercel Functions overview](/docs/functions)
- [Configuring functions](/docs/functions/configuring-functions)
- [Functions usage and pricing](/docs/functions/usage-and-pricing)
- [Fluid compute](/docs/fluid-compute)

---

[View full sitemap](/docs/sitemap)
