-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathastro.config.ts
More file actions
30 lines (29 loc) · 895 Bytes
/
astro.config.ts
File metadata and controls
30 lines (29 loc) · 895 Bytes
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
import sitemap from "@astrojs/sitemap";
import vercel from "@astrojs/vercel";
import { defineConfig } from "astro/config";
// import UnoCSS from "unocss/astro";
import db from "@astrojs/db";
import studiocmsWebVitals from "@studiocms/web-vitals";
import tailwindcss from "@tailwindcss/vite";
// https://astro.build/config
export default defineConfig({
site:
process.env.VERCEL_ENV === "production"
? "https://www.elian.codes/"
: process.env.VERCEL_URL
? `https://${process.env.VERCEL_URL}/`
: "https://localhost:3000/",
trailingSlash: "ignore",
integrations: [sitemap(), db(), studiocmsWebVitals()],
adapter: vercel({
webAnalytics: {
enabled: true,
},
}),
vite: {
optimizeDeps: {
exclude: ["@resvg/resvg-js"],
},
plugins: [tailwindcss()],
},
});