forked from unionlabs/union
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.ts
63 lines (60 loc) · 1.42 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
62
63
import icon from "astro-icon"
import { loadEnv } from "vite"
import svelte from "@astrojs/svelte"
import sitemap from "@astrojs/sitemap"
import tailwind from "@astrojs/tailwind"
import { defineConfig } from "astro/config"
import vercel from "@astrojs/vercel/serverless"
import { markdownConfiguration } from "./markdown.config.ts"
const SITE_URL = "https://union.build"
const { PORT = 4321, ENABLE_DEV_TOOLBAR = "false" } = loadEnv(
process.env.NODE_ENV,
process.cwd(),
""
)
export default defineConfig({
site: SITE_URL,
output: "server",
experimental: {
clientPrerender: true,
contentIntellisense: true
},
trailingSlash: "ignore",
adapter: vercel({
imageService: true
}),
image: {
domains: [
"cdn.contentful.com",
"images.ctfassets.net",
"raw.githubusercontent.com",
"avatars.githubusercontent.com"
]
},
markdown: markdownConfiguration,
server: _ => ({ port: Number(PORT) }),
devToolbar: { enabled: ENABLE_DEV_TOOLBAR === "true" },
prefetch: { prefetchAll: true, defaultStrategy: "viewport" },
redirects: {
"/feed": "/rss.xml",
"/logo": "/union-logo.zip"
},
vite: {
assetsInclude: ["**/*.splinecode"],
optimizeDeps: {
exclude: ["echarts"]
},
define: {
global: {}
}
},
integrations: [
icon(),
tailwind({
applyBaseStyles: false,
configFile: "tailwind.config.ts"
}),
svelte(),
sitemap()
]
})