mirror of
https://github.com/thiloho/aurora.git
synced 2025-11-22 03:21:35 +01:00
30 lines
711 B
TypeScript
30 lines
711 B
TypeScript
import { defineConfig, squooshImageService } from "astro/config";
|
|
import { rehypeHeadingIds } from "@astrojs/markdown-remark";
|
|
import rehypeAutolinkHeadings from "rehype-autolink-headings";
|
|
import svelte from "@astrojs/svelte";
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
site: "https://aurora.thilohohlt.com",
|
|
compressHTML: true,
|
|
scopedStyleStrategy: "class",
|
|
image: {
|
|
service: squooshImageService(),
|
|
},
|
|
markdown: {
|
|
rehypePlugins: [
|
|
rehypeHeadingIds,
|
|
[
|
|
rehypeAutolinkHeadings,
|
|
{
|
|
behavior: "wrap",
|
|
properties: {
|
|
class: "heading-linker",
|
|
},
|
|
},
|
|
],
|
|
],
|
|
},
|
|
integrations: [svelte()],
|
|
});
|