-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
60 lines (56 loc) · 1.9 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
57
58
59
60
import {defineConfig} from 'astro/config';
import tailwindcss from "@tailwindcss/vite";
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}),
},
plugins: [tailwindcss()],
},
integrations: [
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",
release: 'rsickenberg-me@' + process.env.npm_package_version,
autoInstrumentation: {
requestHandler: false,
},
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',
});