-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
39 lines (37 loc) · 900 Bytes
/
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
import { defineConfig } from "astro/config";
import prefetch from "@astrojs/prefetch";
import svelte from "@astrojs/svelte";
import tailwind from "@astrojs/tailwind";
import mdx from "@astrojs/mdx";
import image from "@astrojs/image";
import sitemap from "@astrojs/sitemap";
import vercel from "@astrojs/vercel/serverless";
const site = "https://roy-eden.vercel.app";
// https://astro.build/config
export default defineConfig({
site,
adapter: vercel(),
output: "server",
integrations: [
tailwind({
config: {
applyBaseStyles: false,
},
}),
prefetch(),
svelte(),
mdx(),
image({
serviceEntryPoint: "@astrojs/image/sharp",
}),
sitemap({
customPages: [
"index",
"about",
"blog",
"projects",
// TODO auto add all projects/blog posts
].map((page) => `${site}/${page}`),
}),
],
});