News for hackers. Stuff that matters.
Re:Show HN: I created a URL shortener that can be entirely h... by nelsontky on Monday November 16, 2020 @11:04AM (#25113270)
Hmm having a GitHub action redeploy the site is not instantaneous and it does take up to 1 minute for the site (and consequently the new short link) to be updated. Nevertheless, that is a sweet idea, and there are other replies that suggested using a static site generator to generate one html file per short link, with each html file containing a "redirect" tag in <head>. This idea can definitely be combined with a GitHub action. Personally I feel that is overkill, because if I were doing something so elaborate, I would have opted for a simpler and more scalable option like Google Cloud Firestore or Firebase URLs
Re:Show HN: I created a URL shortener that can be entirely h... by davchana on Thursday November 19, 2020 @01:13AM (#25146735)