Unverified Commit 6ffbdc5d authored by Max Leiter's avatar Max Leiter Committed by GitHub

Route static render error message: remove duplicate word (#62738)

### What?
Removes an extra word from an error message

### Why?
It bothered me 

### How?
I opened it in VS Code and removed it
Co-authored-by: 's avatarJJ Kasper <jj@jjsweb.site>
parent 8a2460cc
...@@ -688,7 +688,7 @@ const staticGenerationRequestHandlers = { ...@@ -688,7 +688,7 @@ const staticGenerationRequestHandlers = {
case 'arrayBuffer': case 'arrayBuffer':
case 'formData': case 'formData':
throw new DynamicServerError( throw new DynamicServerError(
`Route couldn't be rendered statically because it accessed accessed \`request.${prop}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error` `Route couldn't be rendered statically because it accessed \`request.${prop}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`
) )
case 'clone': case 'clone':
return ( return (
...@@ -733,7 +733,7 @@ const staticGenerationNextUrlHandlers = { ...@@ -733,7 +733,7 @@ const staticGenerationNextUrlHandlers = {
case 'toString': case 'toString':
case 'origin': case 'origin':
throw new DynamicServerError( throw new DynamicServerError(
`Route couldn't be rendered statically because it accessed accessed \`nextUrl.${prop}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error` `Route couldn't be rendered statically because it accessed \`nextUrl.${prop}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`
) )
case 'clone': case 'clone':
return ( return (
...@@ -776,7 +776,7 @@ const requireStaticRequestHandlers = { ...@@ -776,7 +776,7 @@ const requireStaticRequestHandlers = {
case 'arrayBuffer': case 'arrayBuffer':
case 'formData': case 'formData':
throw new StaticGenBailoutError( throw new StaticGenBailoutError(
`Route with \`dynamic = "error"\` couldn't be rendered statically because it accessed accessed \`request.${prop}\`.` `Route with \`dynamic = "error"\` couldn't be rendered statically because it accessed \`request.${prop}\`.`
) )
case 'clone': case 'clone':
return ( return (
...@@ -821,7 +821,7 @@ const requireStaticNextUrlHandlers = { ...@@ -821,7 +821,7 @@ const requireStaticNextUrlHandlers = {
case 'toString': case 'toString':
case 'origin': case 'origin':
throw new StaticGenBailoutError( throw new StaticGenBailoutError(
`Route with \`dynamic = "error"\` couldn't be rendered statically because it accessed accessed \`nextUrl.${prop}\`.` `Route with \`dynamic = "error"\` couldn't be rendered statically because it accessed \`nextUrl.${prop}\`.`
) )
case 'clone': case 'clone':
return ( return (
......
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