Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: serve APP behind express route #6

Open
ssshake opened this issue Jul 30, 2020 · 0 comments
Open

API: serve APP behind express route #6

ssshake opened this issue Jul 30, 2020 · 0 comments

Comments

@ssshake
Copy link
Owner

ssshake commented Jul 30, 2020

There shouldn't be a need to run two separate processes, or access the app and api over two separate ports.

Configure the node process to do a live build and host the dist dir behind route.

A good side effect would be that we dont need to do the ticket where we pull in the api url from config in the vue app

Would already be helpful to other people too:

image

Follow this tutorial to combine the front and back end: https://dennisreimann.de/articles/vue-cli-serve-express.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant