-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
34 lines (31 loc) · 1.01 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
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import vercel from '@astrojs/vercel/serverless';
import tailwind from '@astrojs/tailwind';
import react from '@astrojs/react';
import daisyui from 'daisyui'
import cloudflare from '@astrojs/cloudflare';
import CodeTitle from "remark-code-title"
import astroLayouts from "astro-layouts"
import sitemap from '@astrojs/sitemap';
import { remarkReadingTime } from './src/utils/reading-time.mjs';
// https://astro.build/config
const layoutOptions = {
"pages/blog/**/*": "@layouts/BlogLayout.astro",
}
export default defineConfig({
site: 'https://aaronchris.pages.dev/',
output: 'server',
adapter: vercel(),
markdown: {
extendDefaultPlugins: true,
remarkPlugins: [[astroLayouts, layoutOptions],remarkReadingTime],
shikiConfig:{
theme: "vitesse-dark"
},
},
integrations: [sitemap(),mdx(),react(),tailwind({
config: { path: './tailwind.config.cjs' },
plugins: [daisyui],
})],
});