-
Notifications
You must be signed in to change notification settings - Fork 195
Local Image Proxy Middleware
Chloe Lin [SSW] edited this page Sep 2, 2025
·
1 revision
This middleware is only used in development mode to handle images for TinaCMS. During development, image requestes from /uploads/rules/ are proxied to local files so TinaCMS works as expected.
- Watches requests to
/uploads/rules/*(e.g..jpg,.png,.gif,.webp,.svg). - When such a request is detected, it rewrites the URL to
/api/local-images/.... - This means images are served directly from the local content repo instead of production assets.
- Lets TinaCMS display and edit images while working locally.
- Prevents conflicts with the site’s regular static assets.
- How to Create Rules
- How to Edit Rules
- How to Rename Rules
- How to Add and Edit Categories and Top Categories
- How to Rename Categories
- Check Images
- Check For Duplicate Image Names
- Check Extension Case
- Check Folder Name
- Manage Stale PRs
- T‐shirt Size the PR
- Trigger Rules Build
- Validate Frontmatter
- Validate Frontmatter in All Rules
- Validate Markdown