Adding this config allows us to control whether we add /app/ to endpoint routes. This is useful for using tools such as es-dev-server where we want index.html hosted at http://localhost:3000/index.html instead of http://localhost:3000/app/index.html. Since es-dev-server hosts files without actually building anything it is important that endpoint in appconfig.json points to the proper location of index.html.
Specifically, frau-appconfig-builder looks for an environment variable to determine if it’s running in CI or locally. If it’s running locally then it calls into frau-local-appresolver to get the URL which appends /app/. To fix this I added a parameter to control whether we add it while defaulting it to true so it functions as expected with all existing setups.
Adding this config allows us to control whether we add
/app/
to endpoint routes. This is useful for using tools such ases-dev-server
where we wantindex.html
hosted athttp://localhost:3000/index.html
instead ofhttp://localhost:3000/app/index.html
. Sincees-dev-server
hosts files without actually building anything it is important thatendpoint
inappconfig.json
points to the proper location ofindex.html
.Specifically,
frau-appconfig-builder
looks for an environment variable to determine if it’s running in CI or locally. If it’s running locally then it calls intofrau-local-appresolver
to get the URL which appends/app/
. To fix this I added a parameter to control whether we add it while defaulting it totrue
so it functions as expected with all existing setups.