Files
aurora/astro.config.ts

30 lines
711 B
TypeScript
Raw Normal View History

2023-09-02 15:29:35 +02:00
import { defineConfig, squooshImageService } from "astro/config";
2023-05-18 17:31:16 +02:00
import { rehypeHeadingIds } from "@astrojs/markdown-remark";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import svelte from "@astrojs/svelte";
// https://astro.build/config
export default defineConfig({
2023-05-28 16:39:40 +02:00
site: "https://aurora.thilohohlt.com",
2023-05-22 22:27:49 +02:00
compressHTML: true,
2023-05-18 17:31:16 +02:00
scopedStyleStrategy: "class",
2023-09-02 15:29:35 +02:00
image: {
service: squooshImageService(),
},
2023-05-18 17:31:16 +02:00
markdown: {
2023-05-18 22:17:46 +02:00
rehypePlugins: [
rehypeHeadingIds,
[
rehypeAutolinkHeadings,
{
behavior: "wrap",
properties: {
class: "heading-linker",
},
},
],
],
2023-05-18 17:31:16 +02:00
},
2023-05-18 22:17:46 +02:00
integrations: [svelte()],
});