-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
53 lines (47 loc) · 1.59 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
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import react from "@astrojs/react";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
import { remarkReadingTime } from "./src/utils/reading-time.mjs";
// https://astro.build/config
// https://astro.build/config
// https://astro.build/config
import netlify from "@astrojs/netlify";
// https://astro.build/config
// https://astro.build/config
import compress from "astro-compress";
// https://astro.build/config
export default defineConfig({
output: "server",
adapter: netlify({
edgeMiddleware: true
}),
site: "https://www.chrisrusselljr.com",
markdown: {
extendDefaultPlugins: true,
rehypePlugins: [rehypeAutolinkHeadings],
remarkPlugins: [remarkReadingTime],
shikiConfig: {
theme: "vitesse-dark"
}
},
integrations: [mdx(), sitemap({
customPages: ["https://www.chrisrusselljr.com/blog", "https://www.chrisrusselljr.com/guestbook", "https://www.chrisrusselljr.com/blog/empowerment", "https://www.chrisrusselljr.com/blog/five-tips-for-effective-team-members", "https://www.chrisrusselljr.com/blog/dont-ask-for-feedback"]
}), tailwind({
// Example: Disable injecting a basic `base.css` import on every page.
// Useful if you need to define and/or import your own custom `base.css`.
applyBaseStyles: false
}), react(), compress()],
prefetch: {
prefetchAll: true,
defaultStrategy: "viewport"
},
build: {},
vite: {
ssr: {
noExternal: ['path-to-regexp']
}
}
});