mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
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
This commit is contained in:
parent
7aa965f960
commit
c5dc8f2ec9
2 changed files with 6 additions and 0 deletions
5
.changeset/famous-hats-teach.md
Normal file
5
.changeset/famous-hats-teach.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Fix Passthrough image service generating multiple images with the same content in certain cases
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue