Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-06-07 14:43:12 +0300
committerNejc Habjan <nejc.habjan@siemens.com>2022-06-27 11:36:53 +0300
commit31b7783c26879de6f170e40777c799dfd797213b (patch)
tree5be6eca1e4a9668555de974fea5f522cd3a83062 /internal/redirects/matching.go
parent9269d70e6a28686038ef42f0e4dcb519536eae8d (diff)
Make _redirects limits configurable
Changelog: added
Diffstat (limited to 'internal/redirects/matching.go')
-rw-r--r--internal/redirects/matching.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/redirects/matching.go b/internal/redirects/matching.go
index a75255bb..0b4d26e0 100644
--- a/internal/redirects/matching.go
+++ b/internal/redirects/matching.go
@@ -103,7 +103,7 @@ func matchesRule(rule *netlifyRedirects.Rule, path string) (bool, string) {
// If no rule matches, this function returns `nil` and an empty string
func (r *Redirects) match(path string) (*netlifyRedirects.Rule, string) {
for i := range r.rules {
- if i >= maxRuleCount {
+ if i >= cfg.Redirects.MaxRuleCount {
// do not process any more rules
return nil, ""
}