What's the recommended way for handling repos that...
# ask-community
y
What's the recommended way for handling repos that need different resources per environment? Separate repos? Or substituting different resource configs when definig the repo?
Copy code
@repository
def repo():
    return [
        *prod_resources, # or dev_resources
        leadlag_job]
p
I think using environment variables is useful here, either toggling the defined repository between environments (e.g.
prod_repository
vs
dev_repository
) or toggling the resources within a repository (e.g. the example you have above with
prod_resources
vs
dev_resources
). FWIW, this is an area we’re thinking a lot about in our upcoming roadmap
y
Ok thanks!