-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
56 lines (55 loc) · 1.34 KB
/
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
47
48
49
50
51
52
53
54
55
56
import { defineConfig, sharpImageService } from "astro/config";
import { rehypeAccessibleEmojis } from "rehype-accessible-emojis";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import robotsTxt from "astro-robots-txt";
import partytown from "@astrojs/partytown";
import remarkToc from "remark-toc";
import purgecss from "astro-purgecss";
import icon from "astro-icon";
import playformCompress from "@playform/compress";
// https://astro.build/config
export default defineConfig({
site: "https://gerbenveenhof.nl/",
integrations: [
icon(),
sitemap(),
robotsTxt(),
mdx({
shikiConfig: {
theme: "one-dark-pro",
themes: {
light: "one-light",
dark: "one-dark-pro",
},
},
}),
partytown(),
playformCompress(),
],
vite: {
ssr: {
noExternal: ["include-media"],
},
css: {
preprocessorOptions: {
scss: {
// this is required so that we don't need to import the globals every time
additionalData: '@use "/src/styles/globals.scss" as *;',
},
},
},
},
image: {
service: sharpImageService(),
},
markdown: {
remarkPlugins: [remarkToc],
rehypePlugins: [rehypeAccessibleEmojis],
},
redirects: {
"/posts": "/posts/1",
"/post": "/posts/1",
"/work": "/works",
},
});