Revalidating a SSG path in a tRPC procedure
Hello guys, how could I revalidate a path in a tRPC procedure? I have a
NextJS pages site
that is mainly SSG with an admin panel. When a user creates a new blogpost for.example I want to revalidate that path (ISR) (https://nextjs.org/docs/pages/building-your-application/data-fetching/incremental-static-regeneration#using-on-demand-revalidation).
How could I do that? I probably need the Response object from NextJS
This is my procedure: 4 Replies
https://discord.com/channels/966627436387266600/1159089518582968371/1159116742086381608
Is this what you are looking for?
thank you!
im getting error on both tho:
Type error: Property 'res' does not exist on type 'CreateContextOptions'.
guess i try to edit the types