import type { ActionFunction , LoaderFunction } from "remix" ; import { redirect } from "remix" ; import { logout } from "~/utils/session.server" ; export const action = async ( { request } ) => { return logout ( request ) ; } ; export const loader = async ( ) => { return redirect ( "/" ) ; } ;