Adeel Murtaza
Adeel Murtaza

Reputation: 11

How to deploy Angular Universal project to virtual directory in plesk

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

Answers (1)

David
David

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

Related Questions