This is a Next.js project bootstrapped with create-next-app
.
It's a link shortener that takes the path and tries to match to a key in links.json
and redirects there if there is a url.
First, run the development server:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
To add a new redirect just add a new key in links.json
and <BASE_URL>/<key>
will redirect there.