cms icon indicating copy to clipboard operation
cms copied to clipboard

Add Static Site Generation (SSG) for all pages

Open mvp5464 opened this issue 10 months ago • 1 comments

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

Screenshot1

mvp5464 avatar Apr 17 '24 14:04 mvp5464

@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 avatar Apr 24 '24 11:04 mvp5464

@mvp5464 revalidate is needed, also solve the conflicts

siinghd avatar Jun 30 '24 22:06 siinghd

@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

mvp5464 avatar Jul 11 '24 17:07 mvp5464