bencodezen / vue-enterprise-boilerplate

An ever-evolving, very opinionated architecture and dev environment for new Vue SPA projects using Vue CLI.
7.77k stars 1.32k forks source link

Where do I set backend url for production? #234

Closed RasmusN closed 1 month ago

RasmusN commented 2 years ago

I am trying to deploy my website on AWS S3 as a static website. I'm running into problem because I can't find where to define the API_BASE_URL for axios post/get requests to my backend. The instructions for defining this on the dev server is clear: API_BASE_URL=http://custom.backend:8000 yarn dev

As far as I can see, the API_BASE_URL is only used for testing. Where do I set the backend url for production build?