Max
Max
@headlessheretic.com
Headless heretic 🔱 I talk about headless development, e-commerce and freelancing
32 followers48 following81 posts
Figured out a solution to this. In the GROQ query, you can concatenate the string with an empty string, seems to throw stega off so it doesn't get appended. E.g. 'alignment': '' + alignment
Could you opt out of stega encoding on subfields? This value never needs to be mapped to the studio. Or should I just not use a string in the first place and work out a different solution?
Found out why: www.sanity.io/answers/issu... Stega adds zero width space characters for mapping in preview sessions. That wouldn't be an issue if I wasn't using this value for placement, which needs to work properly in preview sessions too
Trying to enable drag and drop for visual editing in Hydrogen with @sanity.io , but not having much luck. I followed the steps here: www.sanity.io/docs/enablin... but I can't seem to enable the drag and drop editing.
Trying to enable drag and drop for visual editing in Hydrogen with @sanity.io , but not having much luck. I followed the steps here: www.sanity.io/docs/enablin... but I can't seem to enable the drag and drop editing.
Rebuilding a site with Hydrogen this week, with @sanity.io for content. I've missed this setup so much.
What are the benefits and potential drawbacks of embedding the @sanity.io studio on the site? I'm still debating which is the better way to go
I'm done being silent maxkarlsson.dev/blog/rise-of...
When you build for a client, you're also building for other devs. You don't want to be saddled with an unhappy client that can't go anywhere else because you built a wall around their garden. It will eventually hurt your reputation
If you're building for a client: use the most popular tech If you're building for yourself: use whatever you want
This is pretty cool! The components are built with @shadcn/ui and Tailwind, so they're very customisable. 21st.dev
This @sanity.io presentation tool is pretty cool. I barely need to leave the studio while I'm working on a site now
Just realised @sanity.io studio ships with their own icons now. I'm probably late to the party, it used to be react-icons, but this keeps the studio look uniform. It's the little things.