Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

A tiny Node.js microservice to redirect users to a different location.

License

Notifications You must be signed in to change notification settings

withspectrum/micro-redirect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

micro-redirect

A tiny Node.js microservice to redirect users to a different location.

Deployment

Your own micro-redirect is one click away:

Deploy to now

You can also deploy with a single command from the terminal (assuming you have now installed):

now -e REDIRECT_URL=mypage.com withspectrum/micro-redirect

Usage

Set 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>

Development

git clone [email protected]:withspectrum/micro-redirect.git
npm run dev

The server will then be listening at localhost:3000.

Updating

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! 👌

License

Copyright (c) 2017 Space Program Inc, licensed under the MIT license. See LICENSE.md for more information.

About

A tiny Node.js microservice to redirect users to a different location.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •