Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.
/ helix-redirect Public archive

Serve 3xx and internal redirects for Project Helix

License

Notifications You must be signed in to change notification settings

adobe/helix-redirect

Helix Redirect

Serve 3xx and internal redirects for Project Helix

Status

codecov CircleCI GitHub license GitHub issues LGTM Code Quality Grade: JavaScript semantic-release

Installation

Usage

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.

Development

Deploying Helix Redirect

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.