-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.ts
39 lines (38 loc) · 867 Bytes
/
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
37
38
39
import sitemap from '@astrojs/sitemap'
import vercel from '@astrojs/vercel/static'
import postcssGlobalData from '@csstools/postcss-global-data'
import { defineConfig } from 'astro/config'
import compressor from 'astro-compressor'
import customMedia from 'postcss-custom-media'
import { SITE } from './src/constants'
export default defineConfig({
site: SITE,
integrations: [compressor(), sitemap()],
vite: {
server: {
watch: {
ignored: ['**/{.github,.husky,.idea,cache,dist}/**'],
},
},
css: {
postcss: {
plugins: [
postcssGlobalData({ files: ['src/media.css'] }),
customMedia(),
],
},
},
},
output: 'static',
adapter: vercel({
webAnalytics: {
enabled: true,
},
speedInsights: {
enabled: true,
},
}),
build: {
format: 'file',
},
})