12 lines
246 B
TypeScript
12 lines
246 B
TypeScript
import { LoaderFunctionArgs } from 'react-router-dom';
|
|
|
|
export const middleware = async ({ request }: LoaderFunctionArgs) => {
|
|
const url = new URL(request.url);
|
|
|
|
const pathname = url.pathname;
|
|
|
|
if (pathname) return null;
|
|
|
|
return null;
|
|
};
|