# Multi-environment deployment configuration

**URL:** <https://forum.freecodecamp.org/t/multi-environment-deployment-configuration/793322>\
**Category:** General\
**Tags:** bestpractices, security, webapp\
**Created:** [July 6, 2026, 10:55am UTC](https://forum.freecodecamp.org/t/multi-environment-deployment-configuration/793322 "2026-07-06T10:55:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![misscypher](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/misscypher/32/131708_2.png) [@misscypher](https://forum.freecodecamp.org/u/misscypher)\
**Post date:** [July 6, 2026, 10:55am UTC](https://forum.freecodecamp.org/t/multi-environment-deployment-configuration/793322/1 "2026-07-06T10:55:33Z")

</div>

hey all,

I’m currently struggling with a coding / deployment environment / security problem.

Basically, I’ve built a web-app using the Angular framework that’s served as static js bundle. This app is supposed to be deployed across different environments using different authentication and api configurations. So far I’ve been using an internal environment file and a script feeding the configurations into the bundle at build time, which results in a new build for every config. Now the plan is to use environment files that are loaded upon app runtime initialisation, so that there’s only 1 build and the needed configs can just be exchanged based on environment. However I’m worried about having a file with the api-url and other “secrets” lying openly in the assets folder.

Do you have any tips or resources for best practices on this? My googling-skills seem to be rusty.

Thanks in advance =)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [August 3, 2026, 10:55am UTC](https://forum.freecodecamp.org/t/multi-environment-deployment-configuration/793322/2 "2026-08-03T10:55:34Z")

</div>

Closed on August 3, 2026, 10:55am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
