mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
9 lines
140 B
TypeScript
9 lines
140 B
TypeScript
'use server'
|
|
|
|
import { revalidatePath } from 'next/cache'
|
|
|
|
export async function action() {
|
|
revalidatePath('/', 'layout')
|
|
return true
|
|
}
|