-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Proxy configs for multiple environments #437
Comments
Hi René, We have actually just merged a feature to the SDK allowing for environment specific configuration files. You can see the PR here. But the gist of it is that we'll resolve which configuration file is used based on your current environment. If you code is running remotely (on managed runtime) the file used will be determined via the current environments name. So if your code is running on an environment called Similarly when you are developing locally, each developer can create their own config file called We're looking to make a release of this feature really soon, so keep your eye out. I'm also happy to answer any other questions you have. Additionally configuration files written in javascript, yaml, and json are supported. Ben |
Today, you can also override the proxy configs using environments variables:
As an example, you could use this by re-writing |
@bendvc & @johnboxall Thank you very much for this info :) Then we use the next days the env variables and waiting for the next version. |
If you aren't generating a new project, only upgrading the SDK in an existing retail react app, you can't just delete it as I'll look into a follow up for removing the mobify section in newly create retail react apps 👍 |
Is your feature request related to a problem? Please describe.
Currently the proxy config for local development is in package.json, but if we want switch between on-demand sandboxes, then package.json must be changed. Sometimes after working the devs forgot to change the package.json.
Describe the solution you'd like
proxy or complete mobify config in package.json should be moved in separate config file.
Ideally we can make multiple environment configs.
Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: