diff --git a/packages/next/build/utils.ts b/packages/next/build/utils.ts index 65e563c2ae5d364..c7ed129ecfad87c 100644 --- a/packages/next/build/utils.ts +++ b/packages/next/build/utils.ts @@ -539,7 +539,7 @@ export async function buildStaticPaths( if (typeof staticPathsResult.fallback !== 'boolean') { throw new Error( - `The \`fallback\` key must be returned from unstable_getStaticProps in ${page}.\n` + + `The \`fallback\` key must be returned from unstable_getStaticPaths in ${page}.\n` + expectedReturnVal ) }