Skip to main content

Routes

In order for HubX to load the correct application according the URL in the browser and an appliation selected from the menu, the routes.json file maps the URL to the application names.

These are managed per environment are located in the Web.Routes repository. For each application a new entry is required in the format:

{"path": "/path-from-package.json", "name": "@cova/name-from-package.json"}

for example:

{"path": "/entitymanager", "name": "@cova/web-entitymanager"},

The URL path entries need to be unique and the build process will fail if this is not the case.

Steps to add a new entry

  • Create a new branch off the Web.Routes repo, make the changes to the environment specific files.
  • Create a pull request and copy the WebCore team as reviewers.
  • Once the PR is approved, it can be merged.
  • This will trigger the Azure Pipeline validation and deployment and the updates routes be deployment to the corresponding environment.