generated from chrismwilliams/astro-theme-cactus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.ts
36 lines (35 loc) · 1 KB
/
astro.config.ts
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
import { defineConfig, sharpImageService } from "astro/config";
import mdx from "@astrojs/mdx";
import tailwind from "@astrojs/tailwind";
import sitemap from "@astrojs/sitemap";
import prefetch from "@astrojs/prefetch";
import remarkUnwrapImages from "remark-unwrap-images";
import gruvboxTheme from './gruvbox-shiki-theme.json';
// https://astro.build/config
export default defineConfig({
// ! Please remember to replace the following site property with your own domain
site: "https://blog.giuliopime.dev",
markdown: {
remarkPlugins: [remarkUnwrapImages],
shikiConfig: {
theme: gruvboxTheme, // Or 'one-dark-pro', 'github-dark'
wrap: false
}
},
experimental: {
assets: true
},
image: {
// https://docs.astro.build/en/guides/assets/#using-sharp
service: sharpImageService()
},
integrations: [mdx({}), tailwind({
applyBaseStyles: false
}), sitemap(), prefetch()],
compressHTML: true,
vite: {
optimizeDeps: {
exclude: ["@resvg/resvg-js"]
}
}
});