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

Point API requests to localhost:8000 during development #268

Closed
bentref opened this issue Oct 26, 2021 · 1 comment
Closed

Point API requests to localhost:8000 during development #268

bentref opened this issue Oct 26, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@bentref
Copy link
Contributor

bentref commented Oct 26, 2021

Goal: develop a way inside ocfstatic to automatically point ocf/api requests to localhost:8000 when in development and then point it to https://api.ocf.berkeley.edu when in production. I think requiring developers to manually override the url when they want to test an endpoint on a page adds an extra obstacle that needs be dealt with.

@bentref bentref added the enhancement New feature or request label Oct 26, 2021
@Kalissaac
Copy link
Member

We now have a .env file where you can manually override the API host, which mostly solves the issue

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

No branches or pull requests

2 participants