-
Notifications
You must be signed in to change notification settings - Fork 2
/
astro.config.mjs
71 lines (69 loc) · 2.06 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
61
62
63
64
65
66
67
68
69
70
71
import { defineConfig, passthroughImageService } from "astro/config";
import mdx from "@astrojs/mdx";
import tailwind from "@astrojs/tailwind";
import compressor from "astro-compressor";
import sitemap from "@astrojs/sitemap";
import robotsTxt from "astro-robots-txt";
import react from "@astrojs/react";
import icon from "astro-icon";
import path from "node:path";
import vercel from '@astrojs/vercel/serverless';
import sentry from "@sentry/astro";
import spotlightjs from "@spotlightjs/astro";
import fontPicker from "astro-font-picker";
// https://astro.build/config
export default defineConfig({
output: "server",
site: "http://localhost:4321/",
adapter: vercel({
webAnalytics: {
enabled: true
},
imagesConfig: {
domains: ['anishshobithps.com'],
sizes: [320, 640, 1280]
},
devImageService: passthroughImageService(),
imageService: true
}),
markdown: {
drafts: true,
shikiConfig: {
theme: "github-dark",
wrap: true
}
},
integrations: [mdx({
syntaxHighlight: "shiki",
shikiConfig: {
theme: "material-theme-palenight",
wrap: true
},
drafts: true
}), sitemap(), tailwind({
applyBaseStyles: false
}),, robotsTxt(), react(), icon({
iconDir: "src/assets/icons",
include: {
mdi: ["github", "arrow-right", "instagram", "twitter", "linkedin"],
devicon: ["git", "vscode", "docker", "linux", "javascript", "python", "java", "typescript", "c", "cplusplus", "css3", "html5", "react", "mongodb", "prisma", "tailwindcss"]
}
}), compressor({
gzip: true,
brotli: true
}), sentry(), spotlightjs(), fontPicker()],
vite: {
resolve: {
alias: {
"@src": path.resolve("./src"),
"@layouts": path.resolve("./src/layouts"),
"@components": path.resolve("./src/components"),
"@config": path.resolve("./src/config"),
"@content": path.resolve("./src/content"),
"@styles": path.resolve("./src/styles"),
"@utils": path.resolve("./src/utils"),
"@icons": path.resolve("./src/components/icons")
}
}
}
});