# How to alias slicemachine

**URL:** <https://community.prismic.io/t/how-to-alias-slicemachine/7285>\
**Category:** Developing with Prismic\
**Created:** [September 30, 2021, 10:20am UTC](https://community.prismic.io/t/how-to-alias-slicemachine/7285 "2021-09-30T10:20:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![anton2](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/anton2/32/2899_2.png) [@anton2](https://community.prismic.io/u/anton2)\
**Post date:** [September 30, 2021, 10:20am UTC](https://community.prismic.io/t/how-to-alias-slicemachine/7285/1 "2021-09-30T10:20:47Z")

</div>

Hey,

I'll start with a problem:  
We have a setup with a `nx.dev` monorepo approach, where our folder structure for slices is `apps/frontend/slices` I want to move `apps/frontend/slices/` to separate lib `libs/slices`, but I need to keep the same naming convention in `sm.json`, it seems it's not possible, so I needed to come up with workaround not to couple this (left module.json & index proxy in apps/frontend/slices & moved components to libs/slices).

Is there a better way to solve this?

---

<div class="post-metadata">

**Author:** ![Fares](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Fares](https://community.prismic.io/u/Fares)\
**Post date:** [October 1, 2021, 3:23pm UTC](https://community.prismic.io/t/how-to-alias-slicemachine/7285/3 "2021-10-01T15:23:18Z")

</div>

Hi @anton2, thanks for reaching out.

I haven't used NX before, and I will check with my team if they have any suggestions. And I will keep this thread open in case if somebody in the community has better solutions.

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [October 7, 2021, 10:51pm UTC](https://community.prismic.io/t/how-to-alias-slicemachine/7285/8 "2021-10-07T22:51:29Z")

</div>

Hey there Anton, Fares is out of the office, so I'll be taking over the conversation.

Which technology are you using? From what I can see in the official nx.dev site, they support many React frameworks, including Next, which supports Slice Machine 👌.

There is still no fixed clause that indicates how much the arrangement of these elements can be changed. Therefore changing the order of these folders is not recommended, as it might prevent Slice Machine to run correctly.

When creating or modifying components, Slice Machine scans this structure to find matching folders so that the changes can be easily written to the filesystem. This is why it is important to respect the structure of the directories.

---

<div class="post-metadata">

**Author:** ![anton2](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/anton2/32/2899_2.png) [@anton2](https://community.prismic.io/u/anton2)\
**Post date:** [October 8, 2021, 7:30am UTC](https://community.prismic.io/t/how-to-alias-slicemachine/7285/9 "2021-10-08T07:30:31Z")

</div>

Hello, Pau,

I've already figured it out, it works for now.

Thanks

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [October 12, 2021, 2:39pm UTC](https://community.prismic.io/t/how-to-alias-slicemachine/7285/11 "2021-10-12T14:39:00Z")

</div>

I'm glad to hear that you were able to resolve this promptly!  
If it is possible, could you share with us how you solved it? This type of information is valuable to other developers who may find themselves in the same case.

Thanks!

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [October 20, 2021, 6:49pm UTC](https://community.prismic.io/t/how-to-alias-slicemachine/7285/12 "2021-10-20T18:49:12Z")

</div>

This thread has been closed due to inactivity. [Flag to reopen](https://community.prismic.io/t/re-open-a-thread/2175).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 5:50pm UTC](https://community.prismic.io/t/how-to-alias-slicemachine/7285/13 "2021-12-09T17:50:33Z")

</div>


