I had an issue converting a dynamic page to a static page using generateStaticParams. I realized that the problem stemmed from using Next.js for full stack development. Instead of directly calling an instance of Prisma in the generateStaticParams function within the server component, I created an API in the route.js file and then tried to fetch the API version inside server components and other places, which was incorrect. I had to call prisma directly. As a result, I encountered the following error: Generating static pages (8/13) [== ]TypeError: fetch failed at node:internal/deps/undici/undici:12502:13 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)