Rokas
CDCloudflare Developers
•Created by Rokas on 11/6/2024 in #pages-help
Pages middleware with nextjs and wrangler pages dev
Okay, so found a solution. I should've followed nextjs docs, not pages docs. In order for middleware to work, it needs to be added to
src
folder named middleware.ts
.3 replies
CDCloudflare Developers
•Created by Rokas on 11/6/2024 in #pages-help
Pages middleware with nextjs and wrangler pages dev
oh, if I do
pnpm wrangler pages dev .next/static
even without middleware app returns 404s3 replies