Turbopack Error: Invalid segment Static("opengraph-image"), catch all segment must be the last segment modifying the path (segments: [Dynamic("locale"), Group("shop"), Group("category"), CatchAll("slugs")]) #88983
Replies: 1 comment
-
|
This is a Next.js App Router routing error related to catch-all segments. Let me explain: The Problem Once you use [...slugs] (catch-all), you cannot have additional files/folders that create new path segments after it. Use API route for OG image instead app/ Why This Happens Route to opengraph-image.tsx file, OR |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Turbopack version:
v16.1.0-canary.19-88-gda605e0c4Next.js version:
0.0.0Error message:
Beta Was this translation helpful? Give feedback.
All reactions