Skip to content

Commit

Permalink
fix(assets): Only use src to hash files generated by the passthrough …
Browse files Browse the repository at this point in the history
…service (#9075)

* fix(assets): Only use src to hash files generated by the passthrough service

* chore: changeset
  • Loading branch information
Princesseuh authored Nov 13, 2023
1 parent 7aa965f commit c5dc8f2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/famous-hats-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'astro': patch
---

Fix Passthrough image service generating multiple images with the same content in certain cases
1 change: 1 addition & 0 deletions packages/astro/src/assets/services/noop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { baseService, type LocalImageService } from './service.js';

// Empty service used for platforms that neither support Squoosh or Sharp.
const noopService: LocalImageService = {
propertiesToHash: ['src'],
validateOptions: baseService.validateOptions,
getURL: baseService.getURL,
parseURL: baseService.parseURL,
Expand Down

0 comments on commit c5dc8f2

Please sign in to comment.