Answers about nextjs
Questions and answers from the Croct community about nextjs.
Can I stream the page shell first and let the personalized slot fill in?
Next.js App Router. I want static-feeling TTFB. The page has one personalized slot below the fold and I would rather resolve it on the server than swap it in…
Does server-side fetchContent add a TTFB penalty on my Next app?
i moved our hero personalization out of a client hook and into a server fetchContent call in the App Router. my assumption was that the extra server-side…
Can I call fetchContent inside generateMetadata to personalize the page title?
We personalize the hero on our category pages and I would like the meta title and description to match the variant the visitor sees, instead of a generic…
Best pattern for mixing fetchContent in Server Components with useContent in client islands?
I lead a team at an agency and we are writing down conventions for Croct in App Router projects before we roll it out across several client builds. The SDK…
Which A/B testing setup for a Next.js site on Vercel that marketing can actually use?
I manage marketing operations and we are re-evaluating our testing stack. Our site is Next.js on Vercel. The previous tool was a client-side flag SDK and on…
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…
Strapi + Next.js + Croct, does this open-source-friendly stack hold up?
Pitching a stack to a client who insists on open source wherever possible, so Strapi and Next.js App Router are already locked in. Personalization is the one…
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…
Does @croct/plug-next work with the edge runtime?
We run everything on Vercel edge functions and I benchmark TTFB obsessively, currently sitting at 110ms p75 globally. Two questions before I add…
Streaming SSR with a Suspense boundary around each personalized section, good idea or overkill?
News site, aggressive perf targets. Home page has a static shell plus three personalized sections (top stories rail, mid-page promo, newsletter block), each a…
Tagging every Croct event with our release version, is eventMetadata the right tool?
I tag everything we ship with the release version so regressions can be correlated with deploys. I want the same for Croct events: every event annotated with…
Server Components experiment: where does exposure tracking live without double counting?
Evaluating experiment variants in React Server Components and the exposure tracking question keeps resisting a clean answer. The shape of the problem: the…