.vercel/output/static

npx wrangler pages deployment tailnpm run dev but when I try to start it with "preview": "npm run pages:build && wrangler pages dev .vercel/output/static", req.auth starts be always null and I don't know why because I don't getting any error.auth((req) => { is wrapper for middleware from next-auth v5 that looks something like this under the hoodreq: NextResponse supposed to be like that? (maybe you meant (req) : NextResponse).vercel/output/staticexport default async function Page() {
return (
<div
className={
"flex flex-col justify-center items-center min-h-screen py-2 w-full"
}
>
test
</div>
);
}npx wrangler pages deployment tail"preview": "npm run pages:build && wrangler pages dev .vercel/output/static",auth((req) => {req: NextResponse(req) : NextResponseimport { NextResponse } from 'next/server'
import { auth } from './auth'
export default auth((req) => {
const isAuthenticated = !!req.auth
if (isAuthenticated && req.nextUrl.pathname.startsWith(/* */)) {
return NextResponse.redirect(/* */)
}
})import { NextResponse } from "next/server"
import { auth } from "./auth"
export default auth((req) => {
const isAuth = req.auth // always returning null when it is run on wrangler pages devimport { NextResponse } from "next/server"
import { auth } from "./auth"
export async function middleware(req: NextResponse) {
const session = await auth()