Relative Content

Tag Archive for next.js14

NextJS 14 Best practice for dynamic routes (generateStaticParams)

Im new to NextJS 14 and would like some information on the best approach to serve dynamic route pages. Currently Im looking at using ‘generateStaticParams’ which builds all the pages at build time on the server for SEO purposes. However, what would happen if a new route gets called when a new post was added after build time?. Would I have to rebuild nextjs again? Or would the new route be dynamically served? Is there some kind of setting to initiate a rebuild? Or some other approach?