Simple rewrite not working
Unanswered
onethread posted this in #help-forum
The nextjs folder structure has
and
I have this in the next.config.js:
This works for requests like
but
I would think the
Any ideas?
/app/editorials/page.tsxand
/app/editorials/[uid]/page.tsxI have this in the next.config.js:
{
source: "/editorial/:path*",
destination: "/editorials/:path*",
},This works for requests like
/editorial/some-idbut
/editorial always 404s. I would think the
:path* regex would handle /editorial, but even if I add an explicit {
source: "/editorial",
destination: "/editorials",
},/editorial always 404s. Any ideas?