I have looked for this answer but I could not find anything about it I am doing maintenance in the Node app which has the front (Vue) as one single application and the server(backend) as another single application. I do not know how, but when I start the server, in some way, it reads the front project and server the frontend all together with the backend, I mean, I do not need to start the frontend. So it is like... when I build the server app, it also reads the content of the client folder(frontend app) and merges them into a single app, all into the server app. How it is possible?
CodePudding user response:
Your front-end is probably configured to serve the dist
folder on the server, so everything is on the same domain. You probably have a vue.config.js
file with a property outputDir
that points to your server directory.
Read this: https://cli.vuejs.org/config/