Adding controllers/routes to a Sanity backend and the possibility of using a backend server and routes.

2 replies
Last updated: Aug 20, 2023
Good evening,I was wondering how to add "controllers/routes" to my sanity backend, or if it is possible. Here is a screenshot of what the directory currently looks like.
Aug 20, 2023, 2:23 AM
First, sanity does not provide or use a backend service as server. You get a full frontend studio connected to your datasets. But you can use the desk customization or add tools in your configuration to match some routes of the studio with a custom component or needs.If you really want to use backend server and routes, you should consider a framework around the studio like nextjs
Aug 20, 2023, 4:17 PM
Oh! That explains a lot then. Thank you for the help!
Aug 20, 2023, 7:31 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?