flexpool / frontend

Source code of the v2 Flexpool.io Website
https://flexpool.io
GNU Affero General Public License v3.0
65 stars 37 forks source link

Remove unnecessary `getStaticPaths` for get-started pages #523

Open aminick opened 2 years ago

aminick commented 2 years ago

getStaticPaths is used for dynamic url pages, such as blog posts /post/[id], hence It's unnecessary to use getStaticPath here.

aminick commented 2 years ago

In addition, there will be no query params available during static generation, thus anything that relies on query params can't not be static generated during build time.