Replies: 3 comments 2 replies
-
|
As temporary workaround, i created a middleware plugin, which does the job; |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Fixed in #5495. In the end, an easy fix just removing the |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
https://github.com/verdaccio/verdaccio/releases/tag/v6.2.3 |
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.
-
I have installed verdaccio on k8s cluster using url_prefix.
Works perfect, except managing tags for scoped packages (npm dist-tag) will fail. The reason is the substitution of %2f to / during rewrite in the ingress controller. Verdaccio backend receives e.g.
/-/package/@sample/package/dist-tagsinstead of/-/package/@sample%2fpackage/dist-tagswhich causes an error{ "error": "File not found" }I found a function in encodeScopePackage middleware and wonder if it would be possible to add handling of
/-/packages/@similar to/@.e.g. by enhancing following regex in encode-pkg.ts
req.url = req.url.replace(/^\/%40/, '/@').replace(/^(\/-\/package)?(\/@[^\/%]+)\/(?!$)/, '$1$2%2F');Beta Was this translation helpful? Give feedback.
All reactions