mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
19 lines
538 B
Markdown
19 lines
538 B
Markdown
|
---
|
||
|
'astro': major
|
||
|
---
|
||
|
|
||
|
Sharp is now the default image service used for `astro:assets`. If you would prefer to still use Squoosh, you can update your config with the following:
|
||
|
|
||
|
```ts
|
||
|
import { defineConfig, squooshImageService } from "astro/config";
|
||
|
|
||
|
// https://astro.build/config
|
||
|
export default defineConfig({
|
||
|
image: {
|
||
|
service: squooshImageService(),
|
||
|
}
|
||
|
})
|
||
|
```
|
||
|
|
||
|
However, not only do we recommend using Sharp as it is faster and more reliable, it is also highly likely that the Squoosh service will be removed in a future release.
|