#dynamic vs static routes for speed & seo?

2 messages · Page 1 of 1 (latest)

bitter lava
#

in next js is it better to have dynamic routes for a group and fetching from db to generate specific content for each page, so like /providers/[provider]/page.tsx vs static routes for each page within that group, so like /providers/provider1/page.tsx, /providers/provider2/page.tsx.

On each page I will have to make the get request regardless to get the data to display.

This isnt like where people make dynamic routes for user profiles, for example, as I will only have 6 pages for providers and will display fetched data on each page, but I was wondering if itll still be better to make the routing dynamic in this case?

is one better for seo or more efficient?

clever bayBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)