News for hackers. Stuff that matters.

olamide226

This is in context of Containerised Frontends. curious to know how you've handled this as this a huge problem in containerised frontend builds.

Stop Rebuilding Front End Apps for Environment Variables (REP RFC)

In containerised Frontends, Every environment requires rebuilding the same application just to change configuration like API URLs, feature flags, or auth endpoints.Backend systems solved this problem long ago with runtime configuration. You build once and configure the application when it starts.Static webapps never got a clean equivalent.Most solutions today are ad-hoc: - env.sh scripts that...

( Read More... | 3 comments | on HN )

Show HN: REP – build-once, with secure runtime env variables for front end apps

https://rep-protocol.dev/

Hey HN,Every frontend framework bakes environment variables into the JavaScript bundle at build time (process.env, import.meta.env). This means your Docker image is environment-specific — you build one for staging, another for prod, and the image you tested is never the one you deploy.I built REP (Runtime Environment Protocol) to fix this. It's a lightweight Go gateway (~6MB binary, zero deps)...

( Read More... | 1 comment | on HN )