Using the same repo for different websites

Hi,

In addition to our main website, we need to build some microsites(on subdomains/new domains) where we want to reuse all the slices available in a given custom type to reduce our development time. We are using react.js.

What are some of the best ways to achieve this?

-Kapil

Hi @kapil,

This is easier if you're using Slice Machine, which is currently available with Next.js. With Slice Machine, you can store your Custom Type and Slice models locally, and push them to Prismic. That way you can version and share your content models in your codebase. Are you using Next.js with React, or React on its own?

Sam

Hi @samlittlefair , thanks for the reply. we are just using react.

If we plan to migrate to nextjs, can we import our existing slices/custom type built using prismic UI to the slicemachine/next js set up ?

Hi @kapil,

Unfortunately, we don't yet have any tool for migrating Slices and Custom Types to Slice Machine. Let me know if there's anything else I can do to help.

Sam

Hi @sam

Can you help me understand/ point to resources how can I migrate my existing website to slice machine ?

Hi @kapil,

You can try the advice here:

Let me know if that helps.

Sam

This thread has been closed due to inactivity. Flag to reopen.