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.
This commit is contained in:
parent
b9ba264bd6
commit
991ad9225a
1 changed files with 1 additions and 1 deletions
|
@ -595,7 +595,7 @@ export async function buildStaticPaths(
|
|||
const result = _routeMatcher(cleanedEntry)
|
||||
if (!result) {
|
||||
throw new Error(
|
||||
`The provided path \`${entry}\` does not match the page: \`${page}\`.`
|
||||
`The provided path \`${cleanedEntry}\` does not match the page: \`${page}\`.`
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue