Best practices for working with the Commerce Engine config.json file
Version:
We recommend that you follow best practices when you work with the Commerce Engine configuration file:
- We recommend that you are familiar with Microsoft .Net Core application configuration framework.
- Do not add configuration that is applicable to a specific plugin to the
config.jsonfile, unless it is required by the Commerce engine startup process. For example, a very specific functional setting such as“maximum qty of an item to purchase”does not belong in the engineconfig.jsonfile. However, a configuration setting related to third-party service plugin loaded via dependency injection at startup is acceptable. - Only modify the
config.jsonfile to add new configuration settings, or change the value of existing settings. - Always add new configuration settings at the end of the
config.jsonfile. - Do not remove existing settings or modify the structure of the
config.jsonfile.
If you have suggestions for improving this article, let us know!