On my website, I have a page dedicated to displaying information about hotels based on their unique IDs. To achieve this functionality, I utilize getStaticPath to generate paths like /hotel-info/542711, where 542711 represents the hotel's ID.
However, with thousands of hotels in existence, I am concerned about the potential impact on performance. Will NextJS pre-build all these pages and cause issues related to memory consumption? (Increased Static Generation)
Could storing too many pre-built pages lead to memory problems down the line?