functions/_middleware.ts file in the root of the project, right next to package.json. It's just an example copied over from the docs with an additional console.log.pnpm wrangler pages dev pnpm wrangler pages dev .next/static - now middleware gets hit and I see the logs, but any route I try to access, I get 404s.