-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
42 lines (41 loc) · 1 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
import { defineConfig, envField, sharpImageService } from "astro/config";
import tailwind from "@astrojs/tailwind";
import remarkCodeTitles from "remark-code-titles";
import rehypeLazyImage from "rehype-plugin-image-native-lazy-loading";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
// https://astro.build/config
export default defineConfig({
image: {
service: sharpImageService(),
},
site: "https://jfranciscosousa.com",
markdown: {
shikiConfig: {
theme: "dracula",
},
remarkPlugins: [remarkCodeTitles],
rehypePlugins: [rehypeLazyImage],
extendDefaultPlugins: true,
},
integrations: [
tailwind({
config: {
applyBaseStyles: false,
},
}),
mdx(),
sitemap({
filter: (page) => !page.match(/https:\/\/jfranciscosousa\.com\/blog\/.+/),
}),
],
env: {
schema: {
GOODREADS_API_KEY: envField.string({
context: "server",
access: "secret",
optional: true,
}),
},
},
});