Skip to content

Image thumbnail not displaying on Indiekit dashboard #814

@eclecticpassions

Description

@eclecticpassions

Description of the bug

The image thumbnail isn't showing on the Indiekit dashboard. I use separate content store (store-github) and media store (store-s3 plugin).

The image loads and displays correctly when I click into the photo post or the file itself.

Image Image

If I go into Firefox > Inspect > Inspector and click on the missing thumbnail, it says src="/assets/not-found.svg"

Image

In the Inspect > Network tab, I see a 403 error for the image thumbnail:

Method: GET
Scheme: https
Host: indiekit-myblog.onrender.com
Filename: /image/s_240x240/https%3A%2F%2FBucketUrlSetInMediaUrlConfigFile.com%2Fcontent%2Fphotos%2F2026%2F0061.webp

If I visit the URL in the Filename line, https://BucketUrlSetInMediaUrlConfigFile.com/content/photos/2026/0061.webp, the image works, but right now, the src for the thumbnail image on Indiekit is joining the two, making https://<host><filename>, making it a invalid URL:

https://indiekit-myblog.onrender.com/images/s_240x240/https%3A%2F%2FBucketUrlSetInMediaUrlConfigFile.com%2Fcontent%2Fphotos%2F2026%2F0061.webp

Any ideas why?

Steps to reproduce

Use S3 object storage for media and upload a photo.

Expected behaviour

Should load the image with just the media url, not joined with host url and the additional /images/s_240x240/ string.

Environment

Render.com, Node 22.16, "@indiekit/indiekit": "^1.0.0-beta.25", "@indiekit/store-s3": "1.0.0-beta.26".

Additional context

Is it some config issue? My media paths in indiekitrc is in this format:

        "media": {
          "path": "content/photos/{yyyy}/{DDD}{n}.{ext}",
          "url": "https://bucketurl.com/content/photos/{yyyy}/{DDD}{n}.{ext}"

I've also set it to draft and published, but it doesn't make a difference.


Edit: IDK if this makes a difference to the problem, but the URL in publication > postTypes > photo (and notes) > media > url > is actually my CDN URL:

        "media": {
          "path": "content/photos/{yyyy}/{DDD}{n}.{ext}",
          "url": "https://cdn-for-bucket.com/content/photos/{yyyy}/{DDD}{n}.{ext}"

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions