preferred-region-deprecated.mdx


title: preferredRegion Deprecated

Why This Warning Occurred

One or more routes in your application use export const preferredRegion, which is deprecated.

How to Migrate

Remove the preferredRegion export from your route files:

- export const preferredRegion = 'home'

This applies to all route files that support the preferredRegion segment config: page.ts, layout.ts, and route.ts.

Rendered from the public repository vercel/next.js on GitHub; content belongs to its authors. Cached for up to an hour.

errors/preferred-region-deprecated.mdx · vercel/next.js | Docs MD