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
@Philippine Crocodile .
Avatar
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?
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
Answer
Avatar
i don't have much experience in managing SEO so can't say much, sry