Reputation: 11
i want deploy angular universal project in my domain virtual directory but issue is that when i deploy project it not load any css js(asssets) and inner pages
e.g domain.com/virtual directory but when open it not load its assets saying not found domain.com/css altough it has to be this domain.com/Virtual Direcory/css
Upvotes: 0
Views: 495
Reputation: 34475
When you do the build, you can specify the --deploy-url
option
ng build --deploy-url /virtualDirectory
This will add the specified prefix to the scripts
Upvotes: 0