Next.js Discord

Discord Forum

revalidatePath() multi-tenancy (app router)

Unanswered
Snowshoe posted this in #help-forum
Open in Discord
SnowshoeOP
I'm converting a multi-tenancy app from pages to app router, and when I modify a page for a subdomain, it needs to revalidate. I can get it working with revalidatePath("/", "layout"); which clears the entire cache,
but I'd prefer to just revalidate for the subdomain in question. I've tried variations, e.g. revalidatePath("/sites/mydomain", "layout"); etc, but nothing works.
any ideas?

0 Replies