ocf/ocfstatic

Point API requests to localhost:8000 during development

bentref opened this issue · 1 comments

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.

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