Skip to content

mativizo/netlify-json-url-shortener

Repository files navigation

netlify-json-url-shortener

URLS

To set the urls use the urls.json file. The file contains just an array with objects, like this:

[
    {
        slug: "/github",
        url: "https://github.com/mativizo/netlify-json-url-shortener"
    },
    {
        slug: [ "/gh", "gh-profile", "my-github" ],
        url: "github.com/mativizo"
    }
]

So, the url is a string contains url with, or without https/http prefix. The slug is an array or string contains slug(-s).

Example like the above will produce:

You can use slugs like:

  • /gh - with leading slash
  • gh - without leading slash
  • /gh/mativizo - with additional slashes

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published