A tiny Node.js microservice to redirect users to a different location.
Your own micro-redirect is one click away:
You can also deploy with a single command from the terminal (assuming you have now installed):
now -e REDIRECT_URL=mypage.com withspectrum/micro-redirectSet the REDIRECT_URL environment variable to the page you want to redirect to, then send your users to your micro-redirect instance.
For example:
now -e REDIRECT_URL=home.com withspectrum/micro-redirect<a href="mymicroredirect.com">Go to home</a>git clone [email protected]:withspectrum/micro-redirect.git
npm run devThe server will then be listening at localhost:3000.
The master branch of this repository is what you will be deploying. To update to a new version with potential bugfixes, all you have to do is run the now command again and change the URL you call in your app! 👌
Copyright (c) 2017 Space Program Inc, licensed under the MIT license. See LICENSE.md for more information.