Unverified Commit 6a6dd9cd authored by Josh Story's avatar Josh Story Committed by GitHub

Fixes typo in Route handler static generation error handling (#63345)

Error had a typo in it. it should be `force-dynamic` not
`dynamic-error`.

Closes NEXT-2827
parent 18b2e9d5
......@@ -314,7 +314,7 @@ export class AppRouteRouteModule extends RouteModule<
// We should never be in this case but since it can happen based on the way our build/execution is structured
// We defend against it for the time being
throw new Error(
'Invariant: `dynamic-error` during static generation not expected for app routes. This is a bug in Next.js'
'Invariant: `force-dynamic` during static generation not expected for app routes. This is a bug in Next.js'
)
break
case 'force-static':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment