https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
c

crooked-iron-57426

06/16/2022, 1:06 PM
Hello, I'm trying to use Growthbook on my nextJs project. I followed this example and it's working great. However, I'd like to know if it was possible to get all features a given context is eligible to (in the react/js sdk)? I'm trying to find a way to pregenerate all variants at buildtime. Example: I have a
/test/
page and several Features, some of which have conditions like
page-path=/X/
and I'd like to pregenerate all variant who should apply to my given page. The rewriting / redirection would be done on runtime using next12 middlewares exactly like in the example. Thanks in advance
8 Views