fix: revalidate /customize (not /settings) after customize-panel mutations
The invites/onboarding/areas/roles/tiers admin panels moved to /customize, but their actions still revalidated the old /settings route, so the /customize Router Cache went stale after a write. Point them at /customize (keeping the other cross-page revalidations). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
2dbd52e2e4
commit
33b2475e67
@@ -81,7 +81,7 @@ export async function createInvite(input: {
|
||||
.single()
|
||||
|
||||
if (error) return { error: error.message }
|
||||
revalidatePath('/settings')
|
||||
revalidatePath('/customize')
|
||||
return { id: data.id, code: data.code }
|
||||
}
|
||||
|
||||
@@ -143,7 +143,7 @@ export async function updateInvite(inviteId: string, updates: {
|
||||
.eq('space_id', member.space_id)
|
||||
|
||||
if (error) return { error: error.message }
|
||||
revalidatePath('/settings')
|
||||
revalidatePath('/customize')
|
||||
return { success: true as const }
|
||||
}
|
||||
|
||||
@@ -163,6 +163,6 @@ export async function deleteInvite(inviteId: string) {
|
||||
.eq('space_id', member.space_id)
|
||||
|
||||
if (error) return { error: error.message }
|
||||
revalidatePath('/settings')
|
||||
revalidatePath('/customize')
|
||||
return { success: true as const }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user