"use server"; import { getLocale } from "next-intl/server"; import { revalidatePath } from "next/cache"; export const logoutAction = async () => { const local = await getLocale(); console.log(`🚀🚀🚀🚀🚀-> in actions.ts on 7`, local); revalidatePath(`/${local}/profile`, "page"); return; };