0
Fork 0
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:
Erika 2023-11-13 10:58:58 +01:00 committed by GitHub
parent 7aa965f960
commit c5dc8f2ec9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
Fix Passthrough image service generating multiple images with the same content in certain cases

View file

@ -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,