Closed
Description
Is it possible to change default --base-href for ng serve and build processes?
I do have a node backend which will later host my angular 2 applications. The app is only accessible for logged in user. My node server supplies the following routes:
- / (login page)
- /auth
- /api
- /app (Angular 2 Application)
Thus I'd like simulate the same behavior while developing the app.
- is it possible that ng serve hosts the app in the subfolder /app/ (and proxies / to the backend)?
- is it possible to set a default --base-href for the build process and ng serve?
#1080 is pretty similar, however it only works for builds. Thus I'd like to catch up with @JavierFuentes idea. @filipesilva for me it totally makes sense in this context to also develop the app not hosted within the root but within /app/ instead.