Next.js Discord

Discord Forum

Is there a way to handle "[type1]-[type2]" URLs ?

Answered
Philippine Crocodile posted this in #help-forum
Open in Discord
Avatar
Philippine CrocodileOP
.

9 Replies

Avatar
joulev & fuma pray for Schneider
no. you have to do [slug] and parse that slug to get type1 and type2 manually
Avatar
Philippine CrocodileOP
thanks
and will dynamic routing work fine with SEO?
should I precompile urls?
Avatar
joulev & fuma pray for Schneider
what do you mean?
since your app is server rendered it should be fine for SEO. but of course pregenerated routes are faster and faster means better
Avatar
Philippine CrocodileOP
I want some pages with dynamic routing to be indexed, should I do any additional next related stuff for it
Avatar
joulev & fuma pray for Schneider
Answer
Avatar
joulev & fuma pray for Schneider
i don't have much experience in managing SEO so can't say much, sry