How to change the default slices folder?

The slices templates are being created in ./slices folder by default.

I would like to configure the Prismic Builder to save them in ./src/slices instead.

Is there any configuration file to set this up?

Hello @rodrigoam

Thanks for reaching out to us.

To make available all the Slice in the ./src/slices folder you have to register libraries in the sm.json file. There is one library available by default @/slices but you can register more as you want.
For example, you can add library @/src/slices and remove @/slices library.

  "apiEndpoint": "",
  "libraries": [

Now, when you are creating slices in the Slice builder., select this @/src/slices target library.

Let me know if you have any further questions related to it.


It works. :grinning:
Thank you so much Priyanka !!!

I am glad that it works. Feel free to reach out to us if you have any questions.