Deploying the application to a subpath
When you want to deploy to a sub-path on your domain like www.netconomy.net/app1 and app1 is the sub-path you have two possible ways to do that.
- configure
app.route.prefixinenvironment/{config}.ts - configure
app.asset.pathinenvironment/{config}.ts - configure
cli.optimization.assetinncc.conf.json
The configuration in archibald.conf.json is static and can be overridden with the environment config. It is also possible to use the {{ENV_KEY|fallback}} syntax.
The prefix option always works the asset config only if you turn it active true.
Option 1
When configuring a route prefix every route, link and asset will get that path appended.
Option 2
The asset.path option only changes asset paths, like images, fonts, css and js. When configuring cli.asset there are two options realtive and absolute config.
- Static Is active when
hostis set, then it statically takesprotocoll,host,portandpathfrom the config. thepathpart can be overridden through theapp.asset.pathenvironment config. - Dynamic Is active when
hostis not set, then it takesapp.asset.pathfirst andcli.optimization.assetas fallback.
Both options are being combined. So if prefix and asset are configured they generate an url like {prefix}{asset}