-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
39 lines (38 loc) · 990 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
import db from '@astrojs/db'
import mdx from '@astrojs/mdx'
import sitemap from '@astrojs/sitemap'
import tailwind from '@astrojs/tailwind'
import vercel from '@astrojs/vercel'
import { pluginLineNumbers } from '@expressive-code/plugin-line-numbers'
import expressiveCode from 'astro-expressive-code'
import icon from 'astro-icon'
import pagefind from 'astro-pagefind'
import { defineConfig } from 'astro/config'
export default defineConfig({
site: 'https://www.amanvarshney.work/',
integrations: [
expressiveCode({
plugins: [pluginLineNumbers()],
themes: ['vitesse-dark', 'vitesse-light'],
useDarkModeMediaQuery: false,
themeCssSelector: (themeName) =>
themeName === 'vitesse-black' ? '[data-theme="black"]' : '[data-theme="lofi"]'
}),
mdx(),
tailwind(),
sitemap(),
db(),
icon({
iconDir: 'src/assets/icons'
}),
pagefind({
highlightParam: 'highlight'
})
],
adapter: vercel({
webAnalytics: {
enabled: true
},
imageService: true
})
})