Hey! We are new to server side A/B testing and wan...
# ask-questions
l
Hey! We are new to server side A/B testing and want to implement it in our nextJS app. Is there any docs/info regarding how this works in a nextJS app, since our pages are server side rendered, and then potentially cached in AWS cloudfront, how will this caching layer impact the behaviour of our tests? Normally a first time user should reach the backend to be assigend into a testing bucket, but this won't happen when the page comes from Cloudfront I think. Or am I missing something here?
f
We have some examples in our example repo: https://github.com/growthbook/examples/
caching is tricky
one: you'll want to make sure the assignment attribute/id is available from the server side
two, you could look into adding experiments and variants as cache key parameters (not sure of the specifics here for cloudfront)
we also have edge SDKs if you want to apply visual ab tests via the edge
l
Well visual AB won't be an option I think, in the docs it's not recommended to use the visual editor on react sites
We plan to do a test on our dev env to see how the different parts impact a server side A/B test. I'll pass your info to our devs
f
ok
l
thx