Commit 17f6fa96 authored by Yuki Takemoto's avatar Yuki Takemoto Committed by Tim Neutkens

Fix broken link (#7378)

parent 12f4c718
...@@ -295,7 +295,7 @@ export async function renderToHTML( ...@@ -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', () => { ...@@ -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/)
}) })
}) })
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