Move middleware to root

This commit is contained in:
Sam Becker 2025-02-17 18:15:07 -06:00
parent 1508a9718c
commit 099c54da90

View File

@ -1,4 +1,4 @@
import { auth } from './auth';
import { auth } from './src/auth';
import { NextRequest, NextResponse } from 'next/server';
import type { NextApiRequest, NextApiResponse } from 'next';
import {
@ -8,7 +8,7 @@ import {
PATH_OG_SAMPLE,
PREFIX_PHOTO,
PREFIX_TAG,
} from './app/paths';
} from './src/app/paths';
export default function middleware(req: NextRequest, res:NextResponse) {
const pathname = req.nextUrl.pathname;