Next.js Discord

Discord Forum

There is a way to change file-system based router to "normal" config?

Unanswered
Carpenter ant posted this in #help-forum
Open in Discord
Avatar
Carpenter antOP
Its possible?
For me, best solution is something like in vue.

6 Replies

Avatar
maxswjeon
What is a "normal" config?
Avatar
Carpenter antOP
Ex. something like in vue. Array of object with path: component
Avatar
joulev & fuma pray for Schneider
no. you have to use a different framework
(well it is possible if you use optional catch-all routes, but it is not recommended because the entire thing will become a mess and per-route segment configs no longer work; it is recommended to use a framework that doesn't follow file-based routing)
Avatar
Carpenter antOP
Can you recommend something? I love react "style" of building application and server side rendering but need fit structure to requirements.
Avatar
joulev & fuma pray for Schneider
No, my preference is not the same as yours