mirror of
https://github.com/penxio/penx.git
synced 2026-01-13 15:38:12 -05:00
11 lines
218 B
TypeScript
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)
|
|
}
|