Hey
Is @builder.io/personalization-utils
still supported and recommended way for Personalization with Next.js Middleware?
It used to work fine in 2022 (SDK 1, React SDK 2) when I was first testing it on Google Cloud Run. Personalization worked fine.
But now I can’t even install it with the newest SDKs, my dependencies:
"@builder.io/dev-tools": "^0.2.15",
"@builder.io/react": "^3.2.4",
"@builder.io/sdk": "^2.2.2",
"next": "14.1.0", // APP Router
"react": "^18",
Maybe there is a new recommended way to personalize content with Builder, Static/ISR support with middleware, and Next.js App Router?
What are you trying to accomplish
We want to personalize our content based on user attributes (for now set manually, but we are considering the Twilio Segment as CDP).
Code stack you are integrating Builder with
NextJS (App Router), React, Supabase, Vercel
Errors I get on install:
$ npm install @builder.io/personalization-utils
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: edukey-landing@0.1.0
npm ERR! Found: @builder.io/sdk@2.2.2
npm ERR! node_modules/@builder.io/sdk
npm ERR! @builder.io/sdk@"^2.2.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @builder.io/sdk@"^1.1.20" from @builder.io/personalization-utils@2.0.0
npm ERR! node_modules/@builder.io/personalization-utils
npm ERR! @builder.io/personalization-utils@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.