News for hackers. Stuff that matters.
Re:Injecting environment variables into static websites usin... by slantview on Thursday September 30, 2021 @05:09PM (#28711325)
Just because you do SSG doesn't mean you can't run _any_ javascript. This seems like a lot of work to just put a little JS button on the site.
Re:Injecting environment variables into static websites usin... by throwanem on Thursday September 30, 2021 @10:14PM (#28713753)
You still need to inject values from the environment into the page source at build time, whether you're using Javascript or not. And if you're already doing that, why add Javascript on top when all you need is an anchor?
Re:Injecting environment variables into static websites usin... by larsrh on Friday October 01, 2021 @04:35AM (#28716014)
Exactly. I couldn't have solved this with JS only.