Essay
Essay
KPCKevin Powell - Community
Created by Essay on 7/30/2023 in #front-end
How to make API calls to different environments?
Thanks, this is what I was looking for πŸ™‚
8 replies
KPCKevin Powell - Community
Created by Essay on 7/30/2023 in #front-end
How to make API calls to different environments?
Correct me if I’m wrong, this approach sets different env variables for each environment, but I cannot do that for js that runs in the browser, I cannot simply do process.env.BASE_URL. This has to be resolved on the server before the js file is sent to the client. The only way that comes to my mind to do so is creating my own server (e.g. with Express) to do that specific bit of SSR, but I was wondering if there is a standard way to solve this problem by only using nginx and static files
8 replies
KPCKevin Powell - Community
Created by Essay on 7/30/2023 in #front-end
How to make API calls to different environments?
I am using docker compose not kube, but I did not try anything because I really don’t know how to start. On the backend I usually handle this type of things with env variables, but I don’t know how to make it work in the browser
8 replies
KPCKevin Powell - Community
Created by Essay on 3/21/2023 in #front-end
How does this example from React documentation work?
so there's a chance that the submitting status is never committed to React?
4 replies