Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

if it helps, you could use middleware in next.js to handle routing to separate folders easier.


Middleware 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".


ah I see. Maybe try the route rewriting in next.conf.js? I think thats what the file is. That might work for static sites.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: