News for hackers. Stuff that matters.
Re:Injecting environment variables into static websites usin... by harg on Friday October 01, 2021 @05:18AM (#28716241)
I think they do understand how ssg works. The issue they’re trying to solve is how to inject env-specific configuration at runtime. Regardless of which ssg you use you still need a way to vary these values at runtime. I don’t think using the ssg itself is a very efficient solution. Things like envsubst work well to template env variables into static assets or server config at image startup.

There are no comments on this comment yet.