From 8220b67429c3ce391c82e777f32c4cebf5091eaa Mon Sep 17 00:00:00 2001 From: prototypa Date: Thu, 11 Apr 2024 22:22:52 -0400 Subject: [PATCH] Disable the use of third-party cookies in Images by default. --- astro.config.mjs | 1 + src/components/common/Image.astro | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/astro.config.mjs b/astro.config.mjs index 886b8db..7fa1202 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -76,6 +76,7 @@ export default defineConfig({ image: { service: squooshImageService(), + domains: ["cdn.pixabay.com"], }, markdown: { diff --git a/src/components/common/Image.astro b/src/components/common/Image.astro index 019d6a5..a0f7ddf 100644 --- a/src/components/common/Image.astro +++ b/src/components/common/Image.astro @@ -49,4 +49,4 @@ if (_image !== null && typeof _image === 'object') { } --- -{!image ? : } +{!image ? : }