-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
46 lines (45 loc) · 912 Bytes
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import { defineConfig } from "astro/config";
import sitemap from "@astrojs/sitemap";
import rehypeExternalLinks from "rehype-external-links";
import partytown from "@astrojs/partytown";
import purgecss from "astro-purgecss";
// https://astro.build/config
export default defineConfig({
experimental: {
contentCollectionCache: true,
},
compressHTML: true,
trailingSlash: "ignore",
site: "https://sahilrana.in",
build: {
format: "file",
},
integrations: [
sitemap(),
purgecss(),
partytown({
config: {
forward: ["dataLayer.push"],
},
}),
],
prefetch: {
defaultStrategy: "viewport",
},
markdown: {
shikiConfig: {
theme: "github-dark",
},
rehypePlugins: [
[
rehypeExternalLinks,
{
content: {
type: "text",
value: " 🔗",
},
},
],
],
},
});