-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.ts
35 lines (34 loc) · 932 Bytes
/
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
import { defineConfig, passthroughImageService } from "astro/config";
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
import vercel from "@astrojs/vercel/serverless";
import sitemap from "@astrojs/sitemap";
import db from "@astrojs/db";
import auth from "auth-astro";
import million from "million/compiler";
import MillionLint from "@million/lint";
import partytown from "@astrojs/partytown";
// https://astro.build/config
export default defineConfig({
trailingSlash: "never",
site: "https://rcn.sh",
prefetch: {
defaultStrategy: "hover",
},
integrations: [tailwind(), react(), sitemap(), db(), auth(), partytown()],
image: {
service: passthroughImageService(),
},
output: "server",
adapter: vercel({
webAnalytics: {
enabled: true,
},
}),
vite: {
plugins: [
million.vite({ mode: "react", server: true }),
MillionLint.vite(),
],
},
});