Answers about cli
Questions and answers from the Croct community about cli.
How long does it actually take to get a first personalized block live on Sanity?
I am comparing a few options for our Sanity stack and trying to be realistic about onboarding effort. We just came off a heavier tool that took the better…
Does croct init work on a Hydrogen storefront or do I wire everything manually?
We are starting a new Hydrogen storefront (Hydrogen 2026.4.0, Node 22.12) and I am evaluating Croct for personalization. The quick start mentions npx…
How should croct.json5 version specifiers and slots.d.ts play with CI builds?
Setting up CI for a Next.js project and I want the Croct typing story fully deterministic. Three questions: How exactly do version specifiers in croct.json5…
Modeling staging and production as separate environments in croct.json5
Setting up Croct for our two ecommerce brands and I want to get the environment model right from day one. The main requirement: experiments running on staging…
CROCT_API_KEY ended up in a shared log, how do I rotate it without downtime?
On 2026-06-16 we found CROCT_API_KEY printed in a CI log from a debug step added in April. The log is internal but shared across teams, so per our policy the…
Duplicate a proven experience setup into another workspace?
We run several brands, each in its own workspace. For brand A we have a returning-visitor experience that took real iteration to get right: the component, the…
Upgrading @croct/plug-next across a major version, what usually breaks?
I maintain a Next.js app that has been on the same @croct/plug-next version for about a year. Reading through the changelogs before jumping the major, I can…
What exactly does the Sanity personalization template scaffold, and how do I extend it?
I ran the Sanity personalization template and it works, but I never ship a scaffold I do not understand, so I have been going through it file by file. What I…
Reusing the same slot and component setup across client Shopify stores
Hi all. We have standardised a setup for one of our Shopify clients that works really well: a home hero slot, a promo banner slot, and a PDP badge, each with…
Added a new slot in the dashboard, TypeScript says the slot ID does not exist
Created a promo-banner slot in the dashboard ten minutes ago, referenced it in code, and tsc is having none of it: We run strict everything so I can't just…
One croct.json5 for the whole pnpm workspace or one per Next.js app?
We run two Next.js applications in a single pnpm workspace. Both belong to the same Croct workspace, but they use entirely different slots. I am setting up…
Managing Croct config across many client Storyblok repos, croct.json5 conventions?
Our agency now runs the Storyblok integration for four clients and every repo has a croct.json5 that drifted in its own direction. One pins slot versions, one…