-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
astro.config.ts
61 lines (53 loc) · 1.44 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
// https://astro.build/config
import sitemap from "@astrojs/sitemap";
// https://astro.build/config
import compress from "@playform/compress";
// https://astro.build/config
import preact from "@astrojs/preact";
// https://astro.build/config
import robotsTxt from "astro-robots-txt";
// https://astro.build/config
import icon from "astro-icon";
import minify from "./astro-integrations/minify";
import { dirname, resolve } from "node:path";
import { fileURLToPath } from "node:url";
const __dirname = dirname(fileURLToPath(import.meta.url));
export default defineConfig({
site: "https://xhyrom.dev/",
prefetch: true,
integrations: [
tailwind(),
sitemap(),
compress({
SVG: false,
HTML: false,
}),
robotsTxt({
policy: [
{
userAgent: "*",
},
],
sitemap: true,
}),
minify(),
preact(),
icon(),
],
vite: {
resolve: {
alias: {
"~": resolve(__dirname, "./src"),
"@docs": resolve(__dirname, "./docs"),
"@blog": resolve(__dirname, "./blog"),
"@pages": resolve(__dirname, "./src/pages"),
"@assets": resolve(__dirname, "./src/assets"),
"@scripts": resolve(__dirname, "./src/scripts"),
"@layouts": resolve(__dirname, "./src/layouts"),
"@components": resolve(__dirname, "./src/components"),
},
},
},
});