Files
aurora/astro.config.ts

34 lines
779 B
TypeScript
Raw Normal View History

2023-05-18 17:31:16 +02:00
import { defineConfig, sharpImageService } 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({
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
experimental: {
assets: true,
2023-05-18 22:17:46 +02:00
inlineStylesheets: "auto",
2023-05-18 17:31:16 +02:00
},
scopedStyleStrategy: "class",
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
},
image: {
2023-05-18 22:17:46 +02:00
service: sharpImageService(),
2023-05-18 17:31:16 +02:00
},
2023-05-18 22:17:46 +02:00
integrations: [svelte()],
});