Next.js Discord

Discord Forum

I'm trying to convert index page.tsx into ISR page that supports query params

Unanswered
AM posted this in #help-forum
Open in Discord
AMOP
I'm trying to convert index page.tsx into ISR page that supports query params known in advance and i'm trying with:

export async function generateStaticParams() {
  const tags = await getTags();

  return tags.map((tag) => ({
    filter: tag.value,
  }));
}


but i don't think that works for searchParams here is my whole server component:

https://pastebin.com/0JnSABR4

Any idea how to execute this on index page.tsx that in /app folder and supporting those search params?

0 Replies