Where should I save images when developing in a develop server?

Hi, I’m new to Shopify dev environment and currently developing a site on a shopify dev environment myshop-dev, which is synced with my develop branch in Github. My actual store is myshop, which is synced with my main branch in Github. When I change the theme on develop branch and save images through Theme editor, it is only saved as a file in myshop-dev store.

If I want the same image to show up in myshop store, I have to reupload it through Theme editor in myshop, which changes the code of the main branch. I don’t think this is the best way. Wonder what is the best practice here 1) to save images on Github directly (which means that I need to push a new commit every single time I want to change an image), or 2) any way to save an image that could be accessible from both myshop-dev and myshop?

Hi! This is a common issue. The best practice is to store images directly in the assets/ folder and push them via GitHub — that way they’re version-controlled and consistent across both myshop-dev and myshop. Alternatively, you can host shared images on an external CDN and link to them in both stores. Avoid relying on Theme Editor uploads, as they stay tied to the specific store. Hope that helps!

That sounds frustrating :joy: but thanks for your reply!