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
Hello,
Each environment can have their own connection scopes and models. You simply need to update the scopes/models using the connections UI.
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
You can edit the file but the connection settings need to be static for the environment.
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 ?
I’ve gotten read all orders for multiple dev apps no problem
Crap been sitting at it for 3 weeks , Time to reach to Shopify Partners . Thanks @ljspoor94