Sharing Strapi schema with other projects (e.g. front-ends)

Hey, in our project Next with Typescript in Frontend we are using the Documentation generated by Strapi and creating our Types with Orval (https://orval.dev/)
Orval then Generates the Fetch Methods and Returntypes for all components, which we then use in our Frontend.
Nice to have : Orval also generates React-Query methods to be used (useGetApiV1CollectionType etc)
I can only Recommend this setup.

Cheers

1 Like