Files
penx/apps/web/lib/revalidatePath.ts
0xzio 3edfe1aebf refactor: use monorepo
fix: fix build

chore: update README

feat: init extension

fix: fix web build
2025-04-19 01:48:59 +08:00

11 lines
218 B
TypeScript

'use server'
import { revalidatePath as nextRevalidatePath } from 'next/cache'
export async function revalidatePath(
originalPath: string,
type?: 'layout' | 'page',
) {
nextRevalidatePath(originalPath, type)
}