Open jcayzac opened 6 years ago
It looks like the /<query.path>/<id>/
route is hard-coded at https://github.com/phenomic/phenomic/blob/master/packages/plugin-rss-feed/src/index.js#L63-L67
I tried specifying the feeds.<my feed url>.map
option, which would allow me to override this behavior, but neither a function nor a copy of defaultMap works ーI get an unhandled rejected promise error 😢
EDIT: feeds fail only on development server. If I build the static site, they're generated correctly (and my custom map
works). I had to fork the rss plugin just to get rid of the hardcoded routes, tho…
https://github.com/jcayzac/b/blob/master/phenomic.config.js#L44
https://github.com/jcayzac/b/blob/master/Rss.js#L39-L43
We should definitely work on that. Contribution welcome. Maybe I fixed the situation on master branch already for dev server...
rr3 won't be supported in phenomic revamp. A new solution will show up. This problem will have to be handled differently.
Reopening as it's still a good reminder
My permalinks don't match the routes I've defined (the rest works fine, only the RSS feed is affected).
phenomic.config.js
Routes
Link to a blog post is e.g.
/first-post
(without any trailing slash or any other path component).Permalinks in the generated feed
The generated RSS link for the blog post mentioned above is
/posts/first-post/
(instead of/first-post
).I think it mistakenly uses the query domain instead of the route 🤔