`pages_build_output_dir` should be set to `.vercel/output` ?
pages_build_output_dir should be set to .vercel/output ?

.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 hoodexport default async function Page() {
return (
<div
className={
"flex flex-col justify-center items-center min-h-screen py-2 w-full"
}
>
test
</div>
);
}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()