From 628f9aeb62a0603bca7500634f54dddd0bb1ebad Mon Sep 17 00:00:00 2001 From: thiloho <123883702+thiloho@users.noreply.github.com> Date: Sat, 2 Sep 2023 15:29:35 +0200 Subject: [PATCH] Use squoosh --- astro.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/astro.config.ts b/astro.config.ts index 6d31017..dbb4525 100644 --- a/astro.config.ts +++ b/astro.config.ts @@ -1,4 +1,4 @@ -import { defineConfig } from "astro/config"; +import { defineConfig, squooshImageService } from "astro/config"; import { rehypeHeadingIds } from "@astrojs/markdown-remark"; import rehypeAutolinkHeadings from "rehype-autolink-headings"; import svelte from "@astrojs/svelte"; @@ -8,6 +8,9 @@ export default defineConfig({ site: "https://aurora.thilohohlt.com", compressHTML: true, scopedStyleStrategy: "class", + image: { + service: squooshImageService(), + }, markdown: { rehypePlugins: [ rehypeHeadingIds,