Answers about nextjs
Questions and answers from the Croct community about nextjs.
Did Croct stay fast during our campaign traffic spike on Next?
we ran a big campaign yesterday that multiplied traffic on our personalized Next routes for the whole day, and i was braced for latency to climb once the load…
Sharing the same visitor identity between our marketing site and app subdomain
Our marketing site runs on the apex domain and the product runs on an app subdomain, both Next apps. Right now a visitor who crosses from marketing to the app…
How do I stop my e2e tests from sending real Croct events in CI?
Our Playwright suite runs against a preview build in CI, and I do not want those runs doing two things: polluting real event data with synthetic test…
If Croct is slow or down, will my Next page render blank?
Before we ship this I want to be sure a slow or failed content request cannot leave a personalized section empty on the page. A blank hero because a request…
We stay on Contentful for content. How do I actually wire Croct into our Next.js app?
Keeping content in Contentful, no plan to re-platform the CMS. We dropped our old add-on and now want personalization and A/B testing on the Next.js frontend.…
How do I keep most of the page cached but personalize one slot?
marketing page, mostly static, built with ISR and revalidate on a tag. only one slot near the top needs to be personalized per visitor. everything else is the…
Ad blockers are dropping our Croct requests and skewing results, what is the fix?
A chunk of our visitors never register any events, and when I dug into it in the network tab the requests to /client/web/evaluate, /client/web/track and…
Is the Vercel Marketplace integration enough to wire env vars, or do I still set them by hand?
setting up a fresh Next project on Vercel and I saw the Croct listing in the Vercel Marketplace. Before I go clicking, does the one-click integration actually…
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…
How do I keep marketing pages static while personalizing only a few routes?
Most of our site is static marketing content and I want it to stay fully static. Only a handful of routes actually need personalized slots, things like the…
Where do I call fetchContent for a Storyblok-mapped slot in the App Router?
App Router site rendering Storyblok stories, and I have mapped a hero block to a Croct slot. I want the personalized content to arrive server-rendered so…
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…