-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
48 lines (44 loc) · 1.57 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
import {defineConfig} from 'astro/config';
import tailwind from "@astrojs/tailwind";
import preact from "@astrojs/preact";
import icon from 'astro-icon';
import partytown from "@astrojs/partytown";
import tailwindConfigViewer from 'astro-tailwind-config-viewer';
import browserslist from "browserslist";
import {resolveToEsbuildTarget} from "esbuild-plugin-browserslist";
// https://astro.build/config
import sentry from "@sentry/astro";
import sitemap from '@astrojs/sitemap';
// https://astro.build/config
export default defineConfig({
vite: {
build: {
cssTarget: resolveToEsbuildTarget(browserslist(), {printUnknownTargets: false}),
resolveToEsbuildTarget: resolveToEsbuildTarget(browserslist(), {printUnknownTargets: false})
}
},
integrations: [tailwind(), preact({
compat: true
}), icon({
include: {
ph: ['head-circuit-thin', 'envelope-thin', 'github-logo-thin', 'linkedin-logo-thin', 'instagram-logo-thin', 'file-pdf-thin', 'megaphone', 'quotes'],
}
}), partytown({
config: {
forward: ['dataLayer.push']
}
}), sentry({
dsn: "https://[email protected]/4506882226323456",
sourceMapsUploadOptions: {
project: "rsickenberg-me",
authToken: process.env.SENTRY_AUTH_TOKEN,
},
}), sitemap({
changefreq: 'weekly',
priority: 0.7
}), tailwindConfigViewer({
configFile: 'tailwind.config.cjs'
})],
site: 'https://rsickenberg.me',
output: 'static',
});