cms
cms copied to clipboard
Add Static Site Generation (SSG) for all pages
PR Fixes:
- 1 Now all pages will be generated during build time
- 2 It will avoid fetching of the same data
Resolves #455
Checklist before requesting a review
- [x] I have performed a self-review of my code
- [x] I assure there is no similar/duplicate pull request regarding same issue
@hkirat Sir , should I add on demand revalidate, when adding new content ( so when clicking on button to add new content it will revalidate at that time (almost completed locally) . or any other change is needed in this pr
@mvp5464 revalidate is needed, also solve the conflicts
@siinghd , here both the page.tsx are server component and they are using searchParams, which is dynamical API, which is not compatible with generateStaticParam(). so either we need to remove searchParams or convert the page into client component. Or guide me if I'm missing something. https://github.com/vercel/next.js/issues/49735