Skip to content

Add option to specify remote domains for image resizing#820

Merged
paulrobertlloyd merged 1 commit intomainfrom
feat/814-image-endpoint-domains
Feb 21, 2026
Merged

Add option to specify remote domains for image resizing#820
paulrobertlloyd merged 1 commit intomainfrom
feat/814-image-endpoint-domains

Conversation

@paulrobertlloyd
Copy link
Collaborator

Fixes #814.

Currently the image resizing plugin only supports resizing remote images saved to the destination publication URL (publication.me). However, it’s possible to configure Indiekit such that files can be saved to other destinations, such as S3-compatible bucket storage.

This PR adds a domains option which gets passed to the same option on ipxHttpStorage() which controls which remote URLs image resizing is allowed for.

For example, if your website is at https://website.example, but media files are saved to https://media.example, you could use the following configuration options:

{
  publication: {
    me: "https://website.example"
  },
  ["@indiekit/endpoint-image"]: {
    domains: ["https://media.example"]
  }
}

@eclecticpassions
Copy link

eclecticpassions commented Jan 26, 2026

I will test this out and report back, thank you for adding this feature/option!

Edit: I don't know how to test this out, do I have to be on ^1.0.0-beta.26 for @indiekit/indiekit?

The PR mentions setting a https://media.example domain for endpoint-image used in resizing only (which will solve the image thumbnail fail). But does it mean I can use an absoluteURL for media: {url: "https://cdn-to-bucket.com/content/photos/{yyyy}/{DDD}{n}.{ext}"} instead of a relativeURL with the CDN "Override Origin URL" workaround?

@paulrobertlloyd paulrobertlloyd force-pushed the feat/814-image-endpoint-domains branch from 48118c8 to 07d51ee Compare February 21, 2026 17:41
@paulrobertlloyd
Copy link
Collaborator Author

I don't know how to test this out, do I have to be on ^1.0.0-beta.26 for @indiekit/indiekit?

Hmmm, not sure there is an easy way to test this. I’ll merge it in, then include it in the next beta release.

@eclecticpassions
Copy link

Thank you for the update. I will wait for the next beta, update, test and report back.

@paulrobertlloyd paulrobertlloyd merged commit 7254147 into main Feb 21, 2026
1 check failed
@paulrobertlloyd paulrobertlloyd deleted the feat/814-image-endpoint-domains branch February 21, 2026 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Image thumbnail not displaying on Indiekit dashboard

2 participants