Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
julianbuse
on May 24, 2022
|
parent
|
context
|
favorite
| on:
Next.js Layouts RFC: Nested routes and layouts, de...
if it helps, you could use middleware in next.js to handle routing to separate folders easier.
kilburn
on May 24, 2022
[–]
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".
julianbuse
on May 27, 2022
|
parent
[–]
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: