Proxy on AWS App Runner for Vue.js / Express App


Trying to run a Vue.js app with a Node.js Express backend on AWS App Runner.

Is there a way to setup a proxy (like nginx) so that the HTTP /api path is routed to a separate container/host through the same domain?

The problem I’m running into: When the Vue.js client app and Express server api are deployed, they run on two separate publicly accessible hosts. I need to setup App Runner to use a proxy so both hosts can be accessed through a single domain using HTTP paths.

(Alternatively, I can enable CORS policy, but A JavaScript app running on port 8080 connecting to a Node.js Express app running on port 5000 is a fairly common pattern. I feel like this is something that App Runner was built to handle, and I’m not sure what I’m missing.)

asked 5 months ago74 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions