This message was deleted.
# ask-questions
w
This message was deleted.
f
You shouldn't need any rules for the preview environment for it to work. Each environment has its own API key. Are you sure you are using the right one in the preview environment?
b
Yep, the API keys are right 🙂 Here is my setup:
f
Ok, I think I understand now. So you will need one rule for the preview environment (to override the default value), but you don't need to have any targeting conditions. You can delete the
if env = dev
part of the rule and it should still work.
The preview rule will just be "Serve ON"
b
Oh, got it !
But setting the default value to
OFF
is the right way to do it in that particular case? I would have thought that we would be able to override the
Enabled env
variable with forced values but I can live with the way it is right now 😄
f
Yes. We plan to eventually let you have a different default value for each environment, but right now there is only one that's shared between all of them, so setting it to OFF makes the most sense currently.
b
Perfect, thanks a lot for you answers ! Cheers
139 Views