This message was deleted.
# contributing
w
This message was deleted.
f
Hi Karen. We recommend creating a new GrowthBook instance for each request in backend APIs with the attributes specific to that request.
I'm not very familiar with Sails.js, but in Express for example, you would add a middleware at the start of the request to create a GrowthBook instance and then be able to use it in any API route
w
Creating a new instance will work best for us. Thank you.
@future-teacher-7046 I have a follow-up question from the onboarding session last week. I remembered you said that when a flag is created, it will be best to set the default value to
false
. However, that also means if I enabled an environment, the flag is still not on unless I have a forced rule to specify when the value is true. Is that correct? If I am not using any rules, and all I want to do is to enable the entire environment all at once, is setting the default value to
true
the right way to go?
f
Yeah, if you just want to use the environment toggles and not worry about rules or overrides, then it's fine to set the default value to
true
151 Views