Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Ability to use local elasticsearch for frontend development #70

Open
anupdhml opened this issue Feb 12, 2019 · 0 comments
Open

Ability to use local elasticsearch for frontend development #70

anupdhml opened this issue Feb 12, 2019 · 0 comments
Labels

Comments

@anupdhml
Copy link
Member

Right now for dev use, sangraha frontend defaults to using our prod elasticsearch url. Which is good for getting started on frontend dev easily but there are times when we need to use a local elasticsearch instance (eg: when testing frontend changes that relies on elasticsearch changes too). For that scenario, we should be able to override the dev default (to something like http://localhost:9200)

This can be achieved by sourcing the API_ENDPOINT from an environment variable that can be set to any url we want. Or we can introduce config files for the frontend (which might be useful for other stuff too).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant