"custom_types" by existing prismic repository

Hi,

I've started a new project by following Tutorial Series 1: Launch the project - Prismic.
The key difference is that I already have a content structure in prismic.
Is there any way to generate the "custom_types" .json files by the existing data structures in prismic repository?

Cheers,
Chris

Hi Christian,

Can you please clarify what you mean by " I already have a content structure in prismic.".

Do you mean that you already have documents but not custom types? have you deleted your custom type JSON

To have more info, can you provide your repository name (in a private message if possible.)

Looking forward to your reply,
Fares

Hi @Fares,

first thank you for your response.
I created a new project but having already a repository in prismic that I want to use in the new project.

I guess I found the solution already: I just have to copy the "json" in prismic backend of the custom types and persist them as files in ./custom_types as .json files and it's working out of the box.

Did I do this properly?

And again, thank you.

Cheers,