How to deploy Angular Universal project to virtual directory in plesk

478 Views Asked by At

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

1

There are 1 best solutions below

6
David On

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