Serve /docs from Worker
During the investigation of https://github.com/nodejs/node/issues/57252 it was discovered that /docs is not currently served by the Cloudflare Worker, it is still served by the NGINX origin. This should probably be changed to be served by the Worker, unless there are factors I'm unaware of that mean it needs to be NGINX-served still -- both /api and /dist/latest/docs are served from the Worker.
@flakey5 @targos I believe we can do it asap, right?
I can do it but does anyone remember why it wasn't done with the rest?
I can do it but does anyone remember why it wasn't done with the rest?
I don't remember why, last time I remember before this the worker was serving /docs/ so :shrug:
Comparing https://nodejs.org/docs/ and https://r2.nodejs.org/docs/, the list of folders is not exactly the same. Some differences:
- r2 links to
npm/andpatch/which don't exist - r2 does not link to existing directories such as
v0.0.1
Do we have any update here? @flakey5 apparently these folders mentioned above don't exist on r2? Is something missing here yet? 🤔
This will be fixed along with #159, also once this is done I think it'd be good for us to cleanup the worker routes we have as well 😅