rsshub-launcher 自动载入外部路由的尝试 #7891
fengkx
started this conversation in
Show and tell
Replies: 1 comment
-
|
v0.2.0 版本支持直接传入pull request url |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
why
由于RSSHub路由的pr很多,而review和merge pr的过程相当的漫长且耗费mantainer时间。所以我做了这样一个根据配置文件自动载入PR中的路由的cli工具。可以让有需要的朋友立刻体验到PR中的路由而不需要等待merge 。
欢迎使用: https://github.com/fengkx/rsshub-launcher
思路和理想中的效果
npx rsshub-launcher就能直接patch相关文件载入路由前三点基本实现了个大概,最后在vercel中实验发现有些未解之谜。

比如这个deployment
能够从source output中找到已经成功patch的文件,但是路由并不能用,表现的跟没有patch一样。
猜测是require的cache使用clear-module实验,但是一用必超vercel的10s限时。于是作罢。。。
在heroku试了一下,patch的路由可以正常使用。但是没有找到heroku的web ui有改build command的地方。只能改npm script。
改法
Beta Was this translation helpful? Give feedback.
All reactions