rembrembdocs

preferredRegion

Last updated April 23, 2026

The preferredRegion option allows you to specify the preferred deployment region for a route segment. This value is passed to your deployment platform.

layout.tsx | page.tsx | route.ts

JavaScriptTypeScript

export const preferredRegion = // string || string[]

Good to know:

  • If a preferredRegion is not specified, it will inherit the option of the nearest parent layout. The root layout defaults to 'auto'.
  • A child segment's value overrides the parent, values are not merged.
  • Next.js passes the region values through to the deployment platform. The exact behavior and available region codes are platform-specific. Refer to your deployment platform's documentation for supported values.

Vercel

If deploying Next.js on Vercel, regions are only supported if export const runtime = 'edge' is set. The following options can be passed:

If an unsupported value is passed, an error will be thrown.

Was this helpful?