You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 9, 2019. It is now read-only.
You can avoid a database by using a static file. You might be able to use the GitHub API to dynamically update the file and kick off a build when it’s modified. Netlify has a way to handle redirects that I’m using here:
I've used the approach of using Github APIs to trigger a PR and then a build & deploy on merge as a database replacement before as it gave me a UI for reviewing the changes out of the box too. I would not recommend using such an approach here — it's way too slow for an interaction where the user expects his shortened URL to work instantly. Not to mention that with higher usage frequencies this will quickly run into scaling issues as Github will for sure rate limit you.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It'd be nice to have the option to request a short link at the click of a button (shorter than just the encoded value of the code).
Also a cool feature would be custom URLs, similar to like what http://bit.do does.
Even though these URLs are currently shorter than TypeScript's playground URLs, they are still to long for comments on StackOverflow.
The text was updated successfully, but these errors were encountered: