Skip to content

How to change default --base-href #3010

Description

@manuelfink

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.

  1. is it possible that ng serve hosts the app in the subfolder /app/ (and proxies / to the backend)?
  2. 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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5The team acknowledges the request but does not plan to address it, it remains open for discussion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions