Answer the question
In order to leave comments, you need to log in
How to serve a Vue.js application to a client?
Hello, there is an API on NodeJs through which the application works on Vue.js.
The NodeJs server runs through Nginx.
The question is, how do I serve a Vue.js application to a client?
Answer the question
In order to leave comments, you need to log in
After the build, everything from the dist folder to some public folder.
If you use vue router, then you also need
After assembly, the dist folder contains files to be placed in the root of the site's server folder. The easiest way to forward a symlink from the site folder to the dist folder, that is, the www (or htdocs) folder should not be a folder, but a link to dist. Or in the northern settings, specify the DocumentRoot on dist
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question