8 ms·
if it helps, you could use middleware in next.js to handle routing to separate folders easier.
by julianbuse 4y ago
if it helps, you could use middleware in next.js to handle routing to separate folders easier.
- kilburn 4y agoMiddleware won't work if you use "next export" to get a truly static site though, which is by far my preferred mode of operation whenever possible. This is what I meant when I said "second-class citizen at best".
- julianbuse 4y agoah I see. Maybe try the route rewriting in next.conf.js? I think thats what the file is. That might work for static sites.