diff options
Diffstat (limited to '.changeset/sour-frogs-shout.md')
-rw-r--r-- | .changeset/sour-frogs-shout.md | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/.changeset/sour-frogs-shout.md b/.changeset/sour-frogs-shout.md deleted file mode 100644 index 9006914f1..000000000 --- a/.changeset/sour-frogs-shout.md +++ /dev/null @@ -1,27 +0,0 @@ ---- -'astro': patch ---- - -Added support for optimizing remote images from authorized sources when using `astro:assets`. This comes with two new parameters to specify which domains (`image.domains`) and host patterns (`image.remotePatterns`) are authorized for remote images. - -For example, the following configuration will only allow remote images from `astro.build` to be optimized: - -```ts -// astro.config.mjs -export default defineConfig({ - image: { - domains: ["astro.build"], - } -}); -``` - -The following configuration will only allow remote images from HTTPS hosts: - -```ts -// astro.config.mjs -export default defineConfig({ - image: { - remotePatterns: [{ protocol: "https" }], - } -}); -``` |