Fix broken link (#7378)
This commit is contained in:
parent
12f4c718b5
commit
17f6fa96bd
2 changed files with 2 additions and 2 deletions
|
@ -295,7 +295,7 @@ export async function renderToHTML(
|
||||||
|
|
||||||
if (dev && (props.router || props.Component)) {
|
if (dev && (props.router || props.Component)) {
|
||||||
throw new Error(
|
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`,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,6 +22,6 @@ describe('Dynamic require', () => {
|
||||||
|
|
||||||
it('should show error when a Next prop is returned in _app.getInitialProps', async () => {
|
it('should show error when a Next prop is returned in _app.getInitialProps', async () => {
|
||||||
const html = await renderViaHTTP(appPort, '/')
|
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/)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue