rsnext/test/integration/custom-routes/pages/auto-export/[slug].js
JJ Kasper dc49cd33eb
Update warning for rewriting to auto-export dynamic pages (#14751)
Since the no-op rewrite is a valid rewrite used to check pages/assets before adding a 404-rewrite this makes sure we don't show the rewriting to auto-export dynamic pages warning from it

Closes: https://github.com/vercel/next.js/issues/14736
2020-07-02 04:12:41 +00:00

5 lines
125 B
JavaScript

import { useRouter } from 'next/router'
export default function Page() {
return `auto-export ${useRouter().query.slug}`
}