You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I run npm run serve:single-spa:my-app (which is configured to run this command: ng s --ssl --project my-app --disable-host-check --port 9002 --live-reload false), then I get the following output:
** Angular Live Development Server is listening on localhost:9002, open your browser on https://localhost:9002/ **
I understand why it's serving on port 9002 (it's in the configured command), but I can't figure out how to control the base href so that the link is https://localhost:9002/my-app instead of just https://localhost:9002/
I've tried setting it in angular.json ("baseHref": "/my-app") like you would in a normal angular app, and I've tried setting it in app-routing.module.ts ( providers: [{ provide: APP_BASE_HREF, useValue: '/my-app' }],), but nothing seems to change it.
Question
Whenever I run
npm run serve:single-spa:my-app
(which is configured to run this command:ng s --ssl --project my-app --disable-host-check --port 9002 --live-reload false
), then I get the following output:** Angular Live Development Server is listening on localhost:9002, open your browser on https://localhost:9002/ **
I understand why it's serving on port 9002 (it's in the configured command), but I can't figure out how to control the base href so that the link is
https://localhost:9002/my-app
instead of justhttps://localhost:9002/
I've tried setting it in angular.json (
"baseHref": "/my-app"
) like you would in a normal angular app, and I've tried setting it in app-routing.module.ts (providers: [{ provide: APP_BASE_HREF, useValue: '/my-app' }],
), but nothing seems to change it.Environment
Libs:
"@angular/core": "^14.2.0",
"single-spa": ">=4.0.0",
"single-spa-angular": "^7.1.0",
The text was updated successfully, but these errors were encountered: