diff --git a/packages/next/errors.json b/packages/next/errors.json index b039a14ad3ed7..0460412d1a687 100644 --- a/packages/next/errors.json +++ b/packages/next/errors.json @@ -525,7 +525,7 @@ "524": "Expected the \"use cache\" function %s to receive its encrypted bound arguments as the first argument.", "525": "Route %s with \\`dynamic = \"error\"\\` couldn't be rendered statically because it used \\`headers\\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering", "526": "Unknown expression type in abortOnSynchronousPlatformIOAccess.", - "527": "Page with \\`dynamic = \"force-dynamic\"\\` couldn't be exported. \\`output: \"export\"\\` requires all pages be renderable statically because there is not runtime server to dynamic render routes in this output format. Learn more: https://nextjs.org/docs/app/building-your-application/deploying/static-exports", + "527": "Page with \\`dynamic = \"force-dynamic\"\\` couldn't be exported. \\`output: \"export\"\\` requires all pages be renderable statically because there is no runtime server to dynamically render routes in this output format. Learn more: https://nextjs.org/docs/app/building-your-application/deploying/static-exports", "528": "failed to decode param", "529": "Failed to execute \"redirect\" on \"response\": Invalid status code", "530": "Unknown modifier \"%s\"", @@ -621,4 +621,4 @@ "620": "A required parameter (%s) was not provided as %s received %s in getStaticPaths for %s", "621": "Required root params (%s) were not provided in generateStaticParams for %s, please provide at least one value for each.", "622": "A required root parameter (%s) was not provided in generateStaticParams for %s, please provide at least one value." -} \ No newline at end of file +} diff --git a/packages/next/src/server/app-render/create-component-tree.tsx b/packages/next/src/server/app-render/create-component-tree.tsx index 9c0bf21789b62..4c52ebde90a7e 100644 --- a/packages/next/src/server/app-render/create-component-tree.tsx +++ b/packages/next/src/server/app-render/create-component-tree.tsx @@ -250,7 +250,7 @@ async function createComponentTreeInternal({ } else if (dynamic === 'force-dynamic') { // force-dynamic is always incompatible with 'export'. We must interrupt the build throw new StaticGenBailoutError( - `Page with \`dynamic = "force-dynamic"\` couldn't be exported. \`output: "export"\` requires all pages be renderable statically because there is not runtime server to dynamic render routes in this output format. Learn more: https://nextjs.org/docs/app/building-your-application/deploying/static-exports` + `Page with \`dynamic = "force-dynamic"\` couldn't be exported. \`output: "export"\` requires all pages be renderable statically because there is no runtime server to dynamically render routes in this output format. Learn more: https://nextjs.org/docs/app/building-your-application/deploying/static-exports` ) } }