Answer the question
In order to leave comments, you need to log in
Can I set my angular 7 app to run in a non-root folder?
I build the application ng build --prod The application is in the /dist/myapp/ folder I copy the contents of this folder to the remote server in the folder / Everything is ok.
It is necessary that the application works correctly in the /app/ subfolder, for example. Connected files, routing, etc. worked correctly. Maybe in the base-href or in the angular.json application config, maybe somewhere else there is an opportunity to configure it?
The variant with document_root = /app/ is not suitable.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question