diff --git a/packages/astro/src/assets/vite-plugin-assets.ts b/packages/astro/src/assets/vite-plugin-assets.ts index 9f8cbd53e..1e84b2271 100644 --- a/packages/astro/src/assets/vite-plugin-assets.ts +++ b/packages/astro/src/assets/vite-plugin-assets.ts @@ -109,7 +109,10 @@ export default function assets({ format = result.format; } - res.setHeader('Content-Type', mime.getType(fileURLToPath(filePathURL)) || `image/${format}`); + res.setHeader( + 'Content-Type', + mime.getType(fileURLToPath(filePathURL)) || `image/${format}` + ); res.setHeader('Cache-Control', 'max-age=360000'); const stream = Readable.from(data); diff --git a/packages/astro/test/core-image.test.js b/packages/astro/test/core-image.test.js index e8fd1f423..81a793ffc 100644 --- a/packages/astro/test/core-image.test.js +++ b/packages/astro/test/core-image.test.js @@ -72,7 +72,7 @@ describe('astro:image', () => { expect($img.attr('alt')).to.equal('a penguin'); }); - it('middleware loads the file', async() => { + it('middleware loads the file', async () => { let $img = $('#local img'); let src = $img.attr('src'); let res = await fixture.fetch(src);