[Vuejs]-Problems deploying Vue project after build on Apache webserver due to wrong relative paths

0๐Ÿ‘

โœ…

I will answer my own question.

Credit for the answer goes to this article

https://medium.com/js-dojo/how-to-solve-vue-js-prod-build-assets-relative-path-problem-71f91138dd79

Solution is to add the following line to vue.config.js;

module.exports = {publicPath: ''};

I do not know why this solution works. If someone knows, please drop some comments. Thank you.

Leave a comment