actions.ts 318 B

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