Unverified Commit e7101460 authored by Sam Ko's avatar Sam Ko Committed by GitHub

Fix invalid console.error link (#23213)

parent c72e85cd
......@@ -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
......
......@@ -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')
......
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