Fix invalid console.error link (#23213)

This commit is contained in:
Sam Ko 2021-03-19 01:22:19 -07:00 committed by GitHub
parent c72e85cd37
commit e71014609e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -190,7 +190,7 @@ function checkCustomRoutes(
console.error(
`The route ${
(route as Rewrite).source
} rewrites urls outside of the basePath. Please use a destination that starts with \`http://\` or \`https://\` https://err.sh/vercel/next.js/invalid-external-rewrite.md`
} rewrites urls outside of the basePath. Please use a destination that starts with \`http://\` or \`https://\` https://err.sh/vercel/next.js/invalid-external-rewrite`
)
numInvalidRoutes++
continue

View file

@ -213,7 +213,7 @@ const runTests = () => {
)
expect(stderr).toContain(
`The route /hello rewrites urls outside of the basePath. Please use a destination that starts with \`http://\` or \`https://\` https://err.sh/vercel/next.js/invalid-external-rewrite.md`
`The route /hello rewrites urls outside of the basePath. Please use a destination that starts with \`http://\` or \`https://\` https://err.sh/vercel/next.js/invalid-external-rewrite`
)
expect(stderr).toContain('Invalid rewrites found')