-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
70 lines (69 loc) · 2.08 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
65
66
67
68
69
70
import { defineConfig } from 'astro/config';
import tailwind from '@astrojs/tailwind';
import sitemap from '@astrojs/sitemap';
import robotsTxt from 'astro-robots-txt';
import Icons from 'unplugin-icons/vite';
import mdx from '@astrojs/mdx';
import critters from '@playform/inline';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import { rehypeHeadingIds } from '@astrojs/markdown-remark';
import rehypeWidont from 'rehype-widont';
import rehypeSectionize from '@hbsnow/rehype-sectionize';
import remarkCapitalizeHeadings from 'remark-capitalize-headings';
import a11yEmoji from '@fec/remark-a11y-emoji';
import remarkToc from 'remark-toc';
import { pluginLineNumbers } from '@expressive-code/plugin-line-numbers';
import { pluginCollapsibleSections } from '@expressive-code/plugin-collapsible-sections';
import expressiveCode from 'astro-expressive-code';
// https://astro.build/config
export default defineConfig({
site: 'https://emilymedhurst.gay',
integrations: [
tailwind({
nesting: true,
applyBaseStyles: false
}),
sitemap(),
robotsTxt({
sitemap: ['https://emilymedhurst.gay/sitemap-index.xml']
}),
expressiveCode({
plugins: [pluginLineNumbers(), pluginCollapsibleSections()],
themes: ['catppuccin-mocha', 'catppuccin-latte']
}),
mdx({
optimize: true
}),
critters()
],
server: {
headers: {
'x-frame-options': 'SAMEORIGIN',
'content-security-policy':
"frame-src 'self' https://restreamer.pseudorizer.com/; object-src 'none'; base-uri 'self'; script-src 'self' 'unsafe-inline' https://static.cloudflareinsights.com/; style-src 'self' 'unsafe-inline'; img-src 'self' blob: data:; font-src 'self' data:; default-src 'self'; form-action 'self'; frame-ancestors 'none'; upgrade-insecure-requests;"
}
},
prefetch: true,
markdown: {
remarkPlugins: [remarkCapitalizeHeadings, a11yEmoji, remarkToc],
rehypePlugins: [
rehypeHeadingIds,
[
rehypeAutolinkHeadings,
{
behavior: 'wrap'
}
],
rehypeWidont,
rehypeSectionize
]
},
vite: {
plugins: [
Icons({
compiler: 'astro',
autoInstall: true
})
]
}
});