npmrc template: Add support for `relative_url_root`
The following discussion from !36124 (merged) should be addressed:
-
@tkuah started a discussion: (+2 comments) CI_SERVER_URL
seems equivalent to${CI_SERVER_PROTOCOL}://${CI_SERVER_HOST}:${CI_SERVER_PORT}
?The docs for
CI_SERVER_URL
say:The base URL of the GitLab instance, including protocol and port (like
https://gitlab.example.com:8080
)
Hmm, based on https://gitlab.com/gitlab-org/gitlab/-/blob/8c5ecfa0c46da3c2f0828d95b3b11dd99334cd36/config/settings.rb#L65-67,
CI_SERVER_URL
also includes therelative_url_root
if present. Perhaps we can handle this in a new issue ?
/cc @nfriend
Edited by Thong Kuah