Unverified Commit 50400f7e authored by Lyderic Dutillieux's avatar Lyderic Dutillieux Committed by GitHub

Fixed wrong function name in error message (#19034)

Changed function name from "getStaticProps" to "getStaticPaths" in Exception message thrown when 'paths' is invalid.
parent e404b996
......@@ -588,7 +588,7 @@ export async function buildStaticPaths(
if (!Array.isArray(toPrerender)) {
throw new Error(
`Invalid \`paths\` value returned from getStaticProps in ${page}.\n` +
`Invalid \`paths\` value returned from getStaticPaths in ${page}.\n` +
`\`paths\` must be an array of strings or objects of shape { params: [key: string]: string }`
)
}
......
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