Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/page/* 目录返回 HTTP 404 状态码 #364

Open
3 tasks done
gxres042 opened this issue Mar 12, 2024 · 0 comments
Open
3 tasks done

/page/* 目录返回 HTTP 404 状态码 #364

gxres042 opened this issue Mar 12, 2024 · 0 comments

Comments

@gxres042
Copy link
Contributor

gxres042 commented Mar 12, 2024

Describe the bug

用户访问 /page/2 这样的目录时,服务端会返回 HTTP 404 状态码,但是本地 dev 没有这个问题。
Vercel 已配置 rewrite 至 index.html

Reproduction

最坏的情况就是不配置 Vercel 的 rewrite

Example: https://blog.gxres.net/page/2
打开 F12 Network 并刷新页面就能逮住

System Info

System:
    OS: Windows 10 10.0.19044
    CPU: (6) x64 Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
    Memory: 10.41 GB / 15.80 GB
  Binaries:
    Node: 20.10.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.2.3 - C:\Program Files\nodejs\npm.CMD
    pnpm: 8.15.4 - ~\AppData\Roaming\npm\pnpm.CMD
  Browsers:
    Edge: Chromium (122.0.2365.80)
    Internet Explorer: 11.0.19041.3636

Used Package Manager

pnpm

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant