How can we have conditional scopes based on environment ?

does settings.gadget.ts support writing ts code in that which would get executed ?
6 Replies
Chocci_Milk
Chocci_Milk8mo ago
Hello, Each environment can have their own connection scopes and models. You simply need to update the scopes/models using the connections UI.
Tanmay
TanmayOP8mo ago
Can we do this somehow using setting.gadget.ts ? Or is that a static file. We want to have a scope prod but not in dev
Chocci_Milk
Chocci_Milk8mo ago
You can edit the file but the connection settings need to be static for the environment.
Tanmay
TanmayOP8mo ago
So everytime we go to prod we will have to manually change it right ? I ask this because read_all_orders scope is hard to get and they dont approve it for dev apps thus breaks our dev envs so was thinking of a nice workflow. Can we control scopes through toml file now instead of gadget ?
ljspoor94
ljspoor948mo ago
I’ve gotten read all orders for multiple dev apps no problem
Tanmay
TanmayOP8mo ago
Crap been sitting at it for 3 weeks , Time to reach to Shopify Partners . Thanks @ljspoor94

Did you find this page helpful?