From e71014609e777f42f414e45e257faa8d8a2203d9 Mon Sep 17 00:00:00 2001 From: Sam Ko Date: Fri, 19 Mar 2021 01:22:19 -0700 Subject: [PATCH] Fix invalid console.error link (#23213) --- packages/next/lib/load-custom-routes.ts | 2 +- test/integration/invalid-custom-routes/test/index.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/next/lib/load-custom-routes.ts b/packages/next/lib/load-custom-routes.ts index 61b388d1cc..cb3e2cb41b 100644 --- a/packages/next/lib/load-custom-routes.ts +++ b/packages/next/lib/load-custom-routes.ts @@ -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 diff --git a/test/integration/invalid-custom-routes/test/index.test.js b/test/integration/invalid-custom-routes/test/index.test.js index 1bf95e7994..731e0cbe61 100644 --- a/test/integration/invalid-custom-routes/test/index.test.js +++ b/test/integration/invalid-custom-routes/test/index.test.js @@ -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') -- GitLab