Answer the question
In order to leave comments, you need to log in
Which SPA deployment option on Vue is more correct?
Now I do it as follows: in the backend on express in the static folder, I put the build of my application. I give it like this:
app.get(/.*/, (req, res) => res.sendFile(__dirname + '/static/index.html'))
Answer the question
In order to leave comments, you need to log in
It is better to lay out static sites on S3 or another service. Advantage (for more or less serious loads) - the backend server will not be loaded.
https://medium.com/employbl/host-a-vue-js-website-...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question