Unverified Commit 991ad922 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Update error for mis-matching path in getStaticPaths (#20767)

This updates the error shown when a path doesn't match the dynamic route in `getStaticPaths` to not include the `locale` since this isn't considered when matching against the dynamic route. 
parent b9ba264b
...@@ -595,7 +595,7 @@ export async function buildStaticPaths( ...@@ -595,7 +595,7 @@ export async function buildStaticPaths(
const result = _routeMatcher(cleanedEntry) const result = _routeMatcher(cleanedEntry)
if (!result) { if (!result) {
throw new Error( throw new Error(
`The provided path \`${entry}\` does not match the page: \`${page}\`.` `The provided path \`${cleanedEntry}\` does not match the page: \`${page}\`.`
) )
} }
......
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