ci(check-links script): rewrite prod URLs to localhost
This updates the links checker script to rewrite URLs that point to
https://design.gitlab.com to the localhost (http://localhost:8080).
This prevents URLs such as the og:url
meta tag to be flagged as broken
as those always point to the design.gitlab.com domain.
This fixes an issue we noticed in https://gitlab.com/gitlab-org/gitlab-services/design.gitlab.com/-/jobs/7312914164 where new pages are being added and therefore have their og:url
set to URLs that won't yet exist until the MR is deployed. With the urlRewriteExpressions
option, we can force those URLs to be checked against the local build where any newly-added page should be accessible.
Edited by Paul Gascou-Vaillancourt