-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
62 lines (61 loc) · 1.47 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
54
55
56
57
58
59
60
61
62
import { defineConfig } from "astro/config";
import tailwind from "@astrojs/tailwind";
import sitemap from "@astrojs/sitemap";
import icon from "astro-icon";
import orama from "@orama/plugin-astro";
import astroExpressiveCode from "astro-expressive-code";
import { readingTime, modifiedTime } from "./src/lib/remark.mjs";
// https://astro.build/config
export default defineConfig({
site: "https://alexnguyen.co.nz",
integrations: [
tailwind({
applyBaseStyles: false,
}),
sitemap({
filter: (page) =>
page !==
"https://alexnguyen.co.nz/blog/third-party-authentication-with-surrealdb/" &&
page !==
"https://alexnguyen.co.nz/blog/astro-dark-mode-view-transitions/",
}),
icon({
iconDir: "src/assets/icons",
include: {
lucide: [
"info",
"hammer",
"sun-medium",
"moon",
"search",
"rss",
"arrow-right",
],
},
svgoOptions: {
plugins: [
{
name: "inlineStyles",
params: {
onlyMatchedOnce: false,
},
},
],
},
}),
orama({
search: {
pathMatcher: /^blog\/.+$/,
contentSelectors: ["h1", "article"],
},
}),
astroExpressiveCode({ themes: ["dracula"] }),
],
prefetch: {
prefetchAll: true,
},
markdown: {
syntaxHighlight: false,
remarkPlugins: [readingTime, modifiedTime],
},
});