"use server" import { revalidatePath } from "next/cache" export default async function revalidate(path: string) { try { revalidatePath(path) return true } catch (error) { console.error(error) return false } }