getRequestContextgetRequestContext is only for dev ?_middleware.ts file inside a functions folder. I created it and for now I just tried to return the sample response and also some console.logs to see if this was working but I can't see anything working.

@cloudflare/next-on-pages, the functions directory won't work as we build our own worker for your project. You could try using Next.js API route handlers or Next.js middleware insteadsetupDevPlatform: https://github.com/cloudflare/next-on-pages/tree/main/internal-packages/next-dev#next-on-pages-next-devsetupDevBindings it is exactly the same besides the function's name and the fact that you define your bindings in a wrangler.toml instead of defining them in the function's call)setupDevPlatform documentation?getPlatformProxy (and we do defer to that page in our docs)

setupDevBindings to the new setupDevPlatform _middleware.ts functionssetupDevPlatformsetupDevPlatformsetupDevPlatformsetupDevBindingssetupDevBindingsgetPlatformProxy[[durable_objects.bindings]]
name = "MY_DO"
script_name = "do-worker"
class_name = "DurableObjectClass"[Error: ENOTDIR: not a directory, open '/Volumes/Primary/Code/cms/.next/server/edge-chunks/wasm_8b5add1f3c1bcd5e8c85235d4465ef1ec3674e24.wasm'] {
build: errno: -20,
build: code: 'ENOTDIR',
build: syscall: 'open',
build: path: '/Volumes/Primary/Code/cms/.next/server/edge-chunks/wasm_8b5add1f3c1bcd5e8c85235d4465ef1ec3674e24.wasm'
build: }setupDevBindings({
bindings: {
D1: {
type: "d1",
databaseName: "podcast-stats-prod",
id: "e2659b9a-928c-4218-beb5-518b87f59c4f",
},
},
});[[d1_databases]]
binding = "D1"
database_name = "podcast-stats-prod"
database_id = "e2659b9a-928c-4218-beb5-518b87f59c4f"