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

Topic summary

A developer is working with two Shopify environments: a development store (myshop-dev) synced to a GitHub develop branch, and a production store (myshop) synced to the main branch.

The Problem:

  • Images uploaded via Theme Editor are saved only to the specific store, not synced across environments
  • Requires manual re-uploading to both stores, which creates inconsistent code changes

Recommended Solutions:

  1. Store images in the assets/ folder and commit them to GitHub for version control and consistency across both environments
  2. Use an external CDN to host shared images that both stores can reference

Key Takeaway:
Avoid relying on Theme Editor uploads for images that need to appear in multiple environments, as they remain tied to individual stores rather than the codebase.

Summarized with AI on October 29. AI used: claude-sonnet-4-5-20250929.

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!