I have found many articles about headless wordpress and vue.js using data via WP REST API. In these articles they deploy the app on separate servers. Backend is on different server than frontend. I'm trying to find out how to deploy the app on one server.
Until now I come up with one solution: On the server create subfolder ( subdomain ) for CMS and on public upload the Vue frontend and pull the data from subdomain via WP REST API endpoint.
Is it possible to connect Wordpress and Vue without creating subdomain? I would like to upload the vue app right in the folder where is Wordpress. I think I can't put it in the theme folder of the wordpress and keep it separate at the same time. Any solutions?