How do you revalidateTag or revalidatePath with a server component prisma fetch or server action?

I am not using next.js fetch out of the box, just a prisma get. How do I revalidate it with a tag or even the whole path when I submit a form? Next.js examples are all based on the fetch() and/or api route.
Solution:
Nevermind, it was more straightforward than I assumed - I just added revalidatePath('/path/path); to my prisma update server action.
Jump to solution
1 Reply
Solution
saj
saj2y ago
Nevermind, it was more straightforward than I assumed - I just added revalidatePath('/path/path); to my prisma update server action.
Want results from more Discord servers?
Add your server