Serve 3xx and internal redirects for Project Helix
helix-redirect
is a service that will be called from helix-dispatch
. It reads a repository's helix-redirects.yaml
, retrieves all linked redirect spreadsheets, evaluates the current URL against the configured redirect rules and returns either a 3xx redirect or a 204 (no content) response to indicate that no redirect rules apply to the current URL.
curl https://adobeioruntime.net/api/v1/web/helix/helix-services/redirect@v1
For more, see the API documentation.
Deploying Helix Redirect requires the wsk
command line client, authenticated to a namespace of your choice. For Project Helix, we use the helix
namespace.
All commits to main that pass the testing will be deployed automatically. All commits to branches that will pass the testing will get commited as /helix-services/redirect@ci<num>
and tagged with the CI build number.