[🐛 Bug]: 301 Moved Permanently from middleware ended up with 307 Temporary Redirect #808
Closed
1 task done
Labels
bug
Something isn't working
next-on-pages environment related information
System:
Platform: linux
Arch: x64
Version: #1 SMP Fri Mar 29 23:14:13 UTC 2024
CPU: (16) x64 11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
Memory: 15 GB
Shell: /bin/bash
Package Manager Used: npm (9.6.3)
Relevant Packages:
@cloudflare/next-on-pages: 1.11.3
vercel: 34.2.4
next: 14.1.0
Description
Cloudflare next-on-pages do 307 redirect while it has to be 301.
Reproduction
I have created a minimal reproducible example in this repo
How to set it up
git clone https://github.com/strofimo/cf-middleware-move-permanently.git cd cf-middleware-move-permanently npm i
Run NextJS Dev to see what are the expected redirect result
This is the expected behave for a next js app.
Run Cloudflare pages preview using wrangler
Pages Deployment Method
None
Pages Deployment ID
No response
Additional Information
No response
Would you like to help?
The text was updated successfully, but these errors were encountered: