-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
63 lines (62 loc) · 1.49 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
import { resolve } from "node:path";
import db from "@astrojs/db";
import mdx from "@astrojs/mdx";
import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
import solidJs from "@astrojs/solid-js";
import svelte from "@astrojs/svelte";
import tailwind from "@astrojs/tailwind";
import vercel from "@astrojs/vercel/serverless";
import Compress from "@playform/compress";
import icon from "astro-icon";
import robotsTxt from "astro-robots-txt";
import { defineConfig } from "astro/config";
// https://astro.build/config
export default defineConfig({
site: "https://cdzungx.id.vn/",
vite: {
ssr: {
noExternal: ["three"],
},
},
redirects: {
"/github": "https://github.com/CDzungx/",
"/discord": "https://discordapp.com/users/1088612635219599460",
},
integrations: [
tailwind(),
icon({
include: {
mdi: ["github", "arrow-left-bold-outline", "home-outline", "like-outline", "share-outline"],
ic: ["outline-discord", "baseline-privacy-tip"],
ph: ["code-fill", "eye-bold"],
emojione: ["flag-for-united-kingdom", "flag-for-vietnam"],
devicon: ["solidjs", "astro"],
"vscode-icons": [
"file-type-astro",
"file-type-svelte",
"file-type-reactjs",
"file-type-tailwind",
],
},
}),
sitemap(),
robotsTxt(),
react(),
solidJs(),
svelte(),
mdx(),
Compress(),
db(),
],
output: "hybrid",
adapter: vercel({
webAnalytics: {
enabled: true,
},
functionPerRoute: false,
}),
experimental: {
directRenderScript: true,
},
});