# Single codebase, dynamic slicemachine

**URL:** <https://community.prismic.io/t/single-codebase-dynamic-slicemachine/6931>\
**Category:** Developing with Prismic\
**Tags:** slice-machine\
**Created:** [September 8, 2021, 9:16pm UTC](https://community.prismic.io/t/single-codebase-dynamic-slicemachine/6931 "2021-09-08T21:16:34Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Phil](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/phil/32/14_2.png) [@Phil](https://community.prismic.io/u/Phil)\
**Post date:** [September 15, 2021, 4:30pm UTC](https://community.prismic.io/t/single-codebase-dynamic-slicemachine/6931/12 "2021-09-15T16:30:25Z")

</div>

Hi @telco.pls,

Env variables and Slice Machine have previously been discussed here:

> [@Change \`apiEndpoint\` in \`sm.json\` based on environment/branch](https://community.prismic.io/t/change-apiendpoint-in-sm-json-based-on-environment-branch/5920):
>
> We are looking to have the apiEndpoint in the sm.json file be one of 2 values depending on the branch. Is there any way to do this currently? As a workaround, we are thinking we will remove the file from version control and generate it as a build step based on the environment variables.

Although, it's not possible at the minute, but tracked as a feature request.

_(This is something the team really wants to implement but it’s not in the pipe right now. If you have a certain scripted flow, you can rewrite the manifest whenever necessary of course.)_

---

_[View the full topic](https://community.prismic.io/t/single-codebase-dynamic-slicemachine/6931)._
