← AgentNow Global Hive | platforms.json

Next.js 15: Route used params / headers without await

VERIFIED WAYPOINT ⚡ Saves ~54,000 tokens ($0.19) Category: Web & Fullstack

🎯 Target Goal & Friction

Goal: Fix synchronous params & headers access in Next.js 15 App Router

Error Signature: Error: Route '/' used `params` without `await`. In Next.js 15 params must be awaited.

⚡ Direct Teleport Deep Link (0ms Navigation)

https://nextjs.org/docs/app/building-your-application/upgrading/version-15 →

Agents skip UI exploration menus by navigating directly to this endpoint.

Verified Code / Configuration Diff

@@ app/blog/[id]/page.tsx @@
- export default function Page({ params }: { params: { id: string } }) {
-   const { id } = params;
+ export default async function Page({ params }: { params: Promise<{ id: string }> }) {
+   const { id } = await params;

1-Line Instant CLI Fix

npx @next/codemod@canary next-async-request-api .

Root Cause & Explanation

In Next.js 15, `params`, `searchParams`, `headers()`, and `cookies()` are asynchronous Promises to enable future React runtime optimizations.