Skip to content

RSS 地址空白页/404 #3316

Open
Open
@BKDragon

Description

@BKDragon

描述bug
4.8.3 更新之后,在 Vercel 和 Docker 部署均出现 RSS 无法正常显示的问题。
具体表现为,访问 https://yuming.com/feed/https://yuming.com/rss/feed.xml,会进入一个空白文章页(404),随后在一段时间后跳转到首页。
复现方法和原因未知,但我在 Github Issue(https://github.com/tangly1024/NotionNext/issues/3156)和 Telegram 群里都见到了类似情况,我自己也遇到了。

问题定位
根据反复部署的尝试,和查阅部署日志,排除了部署方法的原因。
并且排除了 feed.xml 的生成问题,feed.xml 可以正常生成。同时,观察到另一种 rss 格式,也就是 https://yumiong.com/rss/atom.xml 可以被正常访问。
因此,定位到了两者唯一不同的处理位置,也就是 feed.xml 的路由重定向。

暂时的修改方案
如图,将 next.config.js 113 行到 124 行重定向相关代码全部注释:
Image
这样可保证 https://yuming.com/rss/feed.xml 正常反问,但通过访问 https://yuming.com/feed/ 会失效。
因为我不会 nodejs,无法更精确的定位问题,所以还要等原作者排查。

环境

  • 【必填】4.8.3
  • 【必填】nobelium
  • 【必填】vercel
  • 【可选】操作系统: [例如. iOS, Android, macOS, windows]
  • 【可选】浏览器 [例如. chrome, safari, firefox]

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions