Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Allow the bullet train js client to respect api variable #25

Merged
merged 2 commits into from
Jul 6, 2020

Conversation

amammay
Copy link
Contributor

@amammay amammay commented Jun 18, 2020

Something small i found when i was setting up the full stack for bullet train on our own custom domains.

Copy link
Member

@kyle-ssg kyle-ssg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is really useful and on my todo! However the implementation can't work like this for us, we'd need to configure Project.api and this separately.

In our dev builds of Bullet Train we still want to point to the production api for bulletTrain.init but our actual API calls in the admin interface to point to the develop API.

If you're doing this can we make it Project.bulletTrainClientAPI or something similar?

@amammay
Copy link
Contributor Author

amammay commented Jun 22, 2020

Sounds good, i will implement it as Project.bulletTrainClientAPI and make the updates across the files that will need a reference to it.

@kyle-ssg
Copy link
Member

Awesome cheers for helping out on this!

@amammay amammay requested a review from kyle-ssg July 5, 2020 18:55
@kyle-ssg kyle-ssg merged commit 749cd47 into Flagsmith:master Jul 6, 2020
@kyle-ssg
Copy link
Member

kyle-ssg commented Jul 6, 2020

Awesome, thanks @amammay!

@kyle-ssg
Copy link
Member

Just to let you know this is now also in our production code, thanks again @amammay 🚀 .

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

Successfully merging this pull request may close these issues.

None yet

2 participants