-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
64 lines (60 loc) · 1.64 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
63
64
// Full Astro Configuration API Documentation:
// https://docs.astro.build/reference/configuration-reference
// @type-check enabled!
// VSCode and other TypeScript-enabled text editors will provide auto-completion,
// helpful tooltips, and warnings if your exported object is invalid.
// You can disable this by removing "@ts-check" and `@type` comments below.
// @ts-check
import { defineConfig } from 'astro/config';
import react from '@astrojs/react';
import tailwind from '@astrojs/tailwind';
import mdx from '@astrojs/mdx';
// import sentry from '@sentry/astro';
// import spotlightjs from '@spotlightjs/astro';
import rehypeSlug from 'rehype-slug';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import rehypeExternalLinks from 'rehype-external-links';
import sitemap from '@astrojs/sitemap';
// https://astro.build/config
export default defineConfig(
/** @type {import('astro').AstroUserConfig} */
{
site: 'https://dustingoodman.dev/',
markdown: {
syntaxHighlight: 'shiki',
shikiConfig: {
theme: 'github-dark-dimmed',
},
rehypePlugins: [
rehypeSlug,
[
rehypeAutolinkHeadings,
{
behavior: 'wrap',
},
],
[
rehypeExternalLinks,
{
target: '_blank',
rel: ['nofollow', 'noopener', 'noreferrer'],
},
],
],
},
integrations: [
mdx(),
react(),
tailwind({
applyBaseStyles: false,
}),
sitemap(),
],
redirects: {
'/blog/202220414-serverless-template-announcement':
'/blog/20220414-serverless-template-announcement',
'/blog/202040506-thoughts-on-the-future-of-http-apis':
'20240506-thoughts-on-the-future-of-http-apis',
},
}
);