Change `apiEndpoint` in `sm.json` based on environment/branch

Good to hear, Phil!

We were looking to use Slice Machine on our sites but not having this ability is a limitation for us.

The gist of our architecture is as follows:

We have two Prismic repos for two different sites. They're driven by the same codebase.

So one code repo, pulling from two prismic repos for content. The slices should all be the same regardless. We use two repos since the content is different and to improve editor organization.

Ultimately we would like to develop slices in slice machine and have them sync or pushed to both repositories in Prismic from one code repo.

If this is currently possible, please advise!

Thank you!

1 Like