diff --git a/packages/next/next-server/server/render.tsx b/packages/next/next-server/server/render.tsx index c01eb855d54d4..b1d5de9a1b727 100644 --- a/packages/next/next-server/server/render.tsx +++ b/packages/next/next-server/server/render.tsx @@ -382,9 +382,7 @@ export async function renderToHTML( `Rewrites don't support${ isFallback ? ' ' : ' auto-exported ' }dynamic pages${isFallback ? ' with getStaticProps ' : ' '}yet. ` + - `Using this will cause the page to fail to parse the params on the client${ - isFallback ? ' for the fallback page ' : '' - }` + `Using this will cause the page to fail to parse the params on the client` ) } diff --git a/test/integration/prerender/test/index.test.js b/test/integration/prerender/test/index.test.js index 7938590878262..393da10f468dd 100644 --- a/test/integration/prerender/test/index.test.js +++ b/test/integration/prerender/test/index.test.js @@ -557,12 +557,11 @@ const runTests = (dev = false, isEmulatedServerless = false) => { } if (dev) { - // TODO: re-enable when this is supported in dev - it.skip('should show error when rewriting to dynamic SSG page', async () => { + it('should show error when rewriting to dynamic SSG page', async () => { const item = Math.round(Math.random() * 100) const html = await renderViaHTTP(appPort, `/some-rewrite/${item}`) expect(html).toContain( - `Rewrites don't support dynamic pages with getStaticProps yet. Using this will cause the page to fail to parse the params on the client for the fallback page` + `Rewrites don't support dynamic pages with getStaticProps yet. Using this will cause the page to fail to parse the params on the client` ) })