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

Where do I set backend url for production? #234

Closed
RasmusN opened this issue Feb 18, 2022 · 0 comments
Closed

Where do I set backend url for production? #234

RasmusN opened this issue Feb 18, 2022 · 0 comments

Comments

@RasmusN
Copy link

RasmusN commented Feb 18, 2022

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?

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

2 participants