Update image configuration in astro.config.mjs

The image configuration in the astro.config.mjs file has been extended to include empty domains and AVIF and WebP formats. This adjustment will enhance image handling capabilities and ensure compatibility with a wider range of image formats.
This commit is contained in:
Emil Gulamov 2024-02-12 17:30:54 +04:00
parent 0733181d6d
commit bae3f6f61e

View file

@ -11,6 +11,8 @@ export default defineConfig({
adapter: vercelStatic({ adapter: vercelStatic({
imagesConfig: { imagesConfig: {
sizes: [400, 600, 800, 1000, 1200, 1600, 2000], sizes: [400, 600, 800, 1000, 1200, 1600, 2000],
domains: [],
formats: ["image/avif", "image/webp"],
}, },
imageService: true, imageService: true,
}), }),