Skip to content

Test that the project has not hit GitLab Pages redirect quota

GitLab Pages only supports 1,000 redirects: https://docs.gitlab.com/ee/user/project/pages/redirects.html#create-redirects

Let's add a test to warn if we're near this limit.

  • Test could check how many lines are in static/_redirects
  • Warn on pipeline if there are over 900 redirects
  • Fail pipeline if there are 1000+ redirects