Normally you would require server side rendering to create a link shortener. With this Netlify Function, we use an API to create a short link on the end of the domain.

Try it out