(1st MR) Refactorings to prepare to add a Logger
All threads resolved!
Preparing for: https://gitlab.com/gitlab-org/cells/http-router/-/issues/18
This was extracted from the (2nd MR) !205 (merged)
Context in this conversation: !205 (comment 2078617851)
.gitignore
ing wrangler.toml
because it's generated by GDK, which makes it show up in the git diff
. The original file content has been copied to wrangler.toml.example
instead.classify.ts
RouterEngine
that can encapsulate all the logic of rules matching and applying the matching rule. And keeping the main part of the Router minimal export default
.On both values GITLAB_RULES_CONFIG=passthrough
& GITLAB_RULES_CONFIG=firstcell
in your wrangler.toml
in env.dev
section, the Router should still forward requests to the GitLab instance. By visiting http://gdk.test:3000 you should still see GitLab running.