8c92f5744c
refs https://github.com/TryGhost/Team/issues/1091 The Offers feature needs to be able to add and remove redirects to Ghost - which is very similar to the custom redirects functionality. Here we've pulled out the core of the dynamic redirect part of custom redirects so that it can be used by both features and have code shared between them.
491 B
491 B
Express Dynamic Redirects
Install
npm install @tryghost/express-dynamic-redirects --save
or
yarn add @tryghost/express-dynamic-redirects
Usage
Develop
This is a mono repository, managed with lerna.
Follow the instructions for the top-level repo.
git clone
this repo &cd
into it as usual- Run
yarn
to install top-level dependencies.
Run
yarn dev
Test
yarn lint
run just eslintyarn test
run lint and tests