Is there a way to hook into the Sanity Studio initialise step? Or perhaps start the Studio from a js module so I can wrap it in some logic?
My motive is, in development it can be confusing which Project Instance, Dataset or Project name I'm on. When running npm start
I get the following output
⠹ Compiling...webpack built d689d86d2ed85bc7df76 in 3970ms
✔ Compiling...
Content Studio successfully compiled! Go to http://localhost:3333
But I'd like to add an additional line to this to dump
ProjectName: $Name ProjectId: $ID Dataset: $Dataset
There is a .env
file but these values can also be overridden by config in sanity.json
.
Logging these values for a sanity check would be very handy in dev.