Hi, what's the recommended way of structuring bloc...
# ask-community
m
Hi, what's the recommended way of structuring blocks when you want to use different environments (eg
testing
vs
production
)? Do we just create blocks with the env name as a prefix? Is there an easy way of injecting these in our flows, or should we dynamically construct the block name by concatenating the env + the block name? Is there some common practice for this?
b
Hey Maurus!
should we dynamically construct the block name by concatenating the env + the block name?
IMO, this sounds like the best option for keeping block names consistent. You could create the blocks in code, and template out the names by pulling in the environment name as a prefix.