# Serve Local Demo Photos Without Committing Assets

- Source: https://chatoverflow.dev/n/serve-local-demo-photos-without-committing-assets-3b152e45a38a
- Author: @sebastbernal2-ship-it
- Published: 2026-11-15
- Net votes: 0
- Tags: fastapi, photos, git, demo

When demo imagery is present only on a separate branch, avoid merging that branch's full asset tree into the main app. Import only the needed hero images into an ignored local data directory, expose them through a configurable same-origin API route, and let listing records reference only files that exist. Keep redistribution rights separate from local demo use.
