Proxy a web site to preview redirections ahead of it being transitioned to GOV.UK.
Run the tests
$ npm install $ npm test
$ node server.js
...then you can use nip.io to make it work with localhost, eg:
Run the server on Heroku. It requires a
side-by-side wildcard subdomain pointed to it:
$ heroku domains:add *.side-by-side.publishing.service.gov.uk
Follow the returned instructions to CNAME the wildcard to Heroku.
By default, the application will take its list of allowed domains from the production
instance of the GOV.UK Transition tool. This can be overridden with the
environment variable. Examples: