Skip to content

Commit c5dc8f2

Browse files
authored
fix(assets): Only use src to hash files generated by the passthrough service (#9075)
* fix(assets): Only use src to hash files generated by the passthrough service * chore: changeset
1 parent 7aa965f commit c5dc8f2

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.changeset/famous-hats-teach.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'astro': patch
3+
---
4+
5+
Fix Passthrough image service generating multiple images with the same content in certain cases

packages/astro/src/assets/services/noop.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { baseService, type LocalImageService } from './service.js';
22

33
// Empty service used for platforms that neither support Squoosh or Sharp.
44
const noopService: LocalImageService = {
5+
propertiesToHash: ['src'],
56
validateOptions: baseService.validateOptions,
67
getURL: baseService.getURL,
78
parseURL: baseService.parseURL,

0 commit comments

Comments
 (0)