Fix broken link (#7378)

This commit is contained in:
Yuki Takemoto 2019-05-18 22:06:51 +09:00 committed by Tim Neutkens
parent 12f4c718b5
commit 17f6fa96bd
2 changed files with 2 additions and 2 deletions

View file

@ -295,7 +295,7 @@ export async function renderToHTML(
if (dev && (props.router || props.Component)) {
throw new Error(
`'router' and 'Component' can not be returned in getInitialProps from _app.js https://err.sh/zeit/next.js/cant-override-next-props.md`,
`'router' and 'Component' can not be returned in getInitialProps from _app.js https://err.sh/zeit/next.js/cant-override-next-props`,
)
}
}

View file

@ -22,6 +22,6 @@ describe('Dynamic require', () => {
it('should show error when a Next prop is returned in _app.getInitialProps', async () => {
const html = await renderViaHTTP(appPort, '/')
expect(html).toMatch(/https:\/\/err\.sh\/zeit\/next\.js\/cant-override-next-props\.md/)
expect(html).toMatch(/https:\/\/err\.sh\/zeit\/next\.js\/cant-override-next-props/)
})
})