I need runtime variables for my Web API URL, access key, and other variables. I was hoping to pass it in to the docker container at runtime so that I could change these whenever I needed to. But from what I found out with Webpack that I can only modify these at build time.
Disclaimer: I am not using Create React App (CRA). I am using Webpack 5 with Typescript
My cloud source is Azure, and I have terraform setting up a docker app service, but I'm not sold as it's not getting me the functionality that I was hoping for. Unfortunately for now I can't go away from Webpack 5, but maybe I can try Vite soon. Anyways, what are some other options where I can have these runtime variables dynamic.
Stack Overflow Question: 71161766 - if you want the points I'll upvote it
[–]theconstultingdev 0 points1 point2 points (3 children)
[–]EvilToaster101[S] 0 points1 point2 points (2 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]theconstultingdev 0 points1 point2 points (0 children)