Prepare to deploy the features.json file by copying the existing
development version of the file and making changes for deployment.
About this task
You need two versions of the features.json file. You use one version of the
file for development purposes, and another version of the file for deploying the new application.
The files are identical, with two exceptions.
The value that you define in the navigation > route > link property differs between the development and deployment file versions.
The directories where you place the file for local development should be put into the
<order_hub_code_directory>/shell-ui/assets/dev directory, while the file for
deployment should be put into the <order_hub_code_directory>/shell-ui/assets
directory.
After you create a features.json file for development purposes, you can
then make a copy of the file and make the changes for deployment.
To: <order_hub_code_directory>/shell-ui/assets/features.json
Update the navigation > route > link property in the deployment version of the file.
When creating the file for deployment, the value is set to
/order-management-customization/<base-href>/<path to the page>. The
base-href represents the base href that is used to build the Angular
repository.
The file for deployment should be put into the
<order_hub_code_directory>/shell-ui/assets directory.
For example:
<order_hub_code_directory>/shell-ui/assets/features.json:Figure 2. Sample features.json for deployment