and wdym by "static pages", its not possible to have both static pages and ssr on same project
and wdym by "static pages", its not possible to have both static pages and ssr on same project


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)Error: The 'cache' field on 'RequestInitializerDict' is not implemented., when googling this, I found some supabase stuff, which I don't use.cache part, if I remove it, it works fine. What's wrong with the no-cache? Is there a reason why it suddenly does not work anymore?appwrite sdk, I am also getting: Error: The 'credentials' field on 'RequestInitializerDict' is not implemented. useSecureCookies: process.env.NODE_ENV === "development" ? false : true, to next-auth config and now everyting works
Error: The 'credentials' field on 'RequestInitializerDict' is not implemented.export default async function Page() {
return (
<div
className={
"flex flex-col justify-center items-center min-h-screen py-2 w-full"
}
>
test
</div>
);
}"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(/* */)
}
})Error: The 'cache' field on 'RequestInitializerDict' is not implemented.cacheappwriteError: The 'credentials' field on 'RequestInitializerDict' is not implemented.Error: The 'credentials' field on 'RequestInitializerDict' is not implemented. useSecureCookies: process.env.NODE_ENV === "development" ? false : true,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() const response = await fetch(
`${process.env.NEXT_PUBLIC_API_URL}/v1/databases/hp_db/collections/userdata/documents`,
{
method: 'GET',
headers: {
'Content-Type': 'application/json',
'X-Appwrite-Project': `${process.env.NEXT_PUBLIC_APPWRITE_PROJECT_ID}`,
'X-Appwrite-Response-Format': '1.4.0',
},
cache: 'no-cache',
}
)