J
J
jenya77712019-12-09 13:47:22
Node.js
jenya7771, 2019-12-09 13:47:22

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

3 answer(s)
D
Dmitry Brusnichnik, 2019-12-09
@brusnichnik

After the build, everything from the dist folder to some public folder.
If you use vue router, then you also need

L
Lykyanov Pavel, 2019-12-09
@Javded

Pack in docker

M
Maxim Tikhonov, 2019-12-10
@mylp

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 question

Ask a Question

731 491 924 answers to any question