it is. only routes marked as edge runtime will be SSR. other routes will be prerendered at build tim
it is. only routes marked as edge runtime will be SSR. other routes will be prerendered at build time.


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.wrangler dev ./thedo.ts i can hit the DO directly in the browser without any issuesexport 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(/* */)
}
})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,export async function GET(request: NextRequest) {
const context = getRequestContext();
let id = context.env.RATE_LIMITER.idFromName(new URL(request.url).pathname);
const stub = context.env.RATE_LIMITER.get(id);
console.log({ id, stub });
return stub.fetch(request);
}{
id: constructor { name: undefined },
stub: constructor { name: undefined, id: undefined }
}
⨯ Error [TypeError]: Failed to parse URL from [object Request]wrangler dev ./thedo.tsimport { 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',
}
)