-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathastro.config.mjs
More file actions
44 lines (39 loc) · 923 Bytes
/
astro.config.mjs
File metadata and controls
44 lines (39 loc) · 923 Bytes
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
/*
DREAMCLOUD's PORTFOLIO CONFIG
---
Please read before merging stuff.
*/
// Import config object
import { defineConfig } from 'astro/config';
// Styling
import tailwindcss from "@tailwindcss/vite";
import icon from "astro-icon";
// Features
import sitemap from "@astrojs/sitemap";
// Markdown
import mdx from "@astrojs/mdx";
import rehypeMermaid from 'rehype-mermaid';
import remarkObsidian from 'remark-obsidian';
export default defineConfig({
site: 'https://funa.dev',
integrations: [icon(), mdx(), sitemap()],
vite: {
plugins: [tailwindcss()],
server: {
allowedHosts: ['code.vaatigames.ovh']
}
},
prefetch: {
prefetchAll: true
},
markdown: {
syntaxHighlight: {
type: 'shiki',
excludeLangs: ['mermaid', 'math'],
},
remarkPlugins: [
[remarkObsidian, { heading: 'toc', maxDepth: 3 }],
],
rehypePlugins: [rehypeMermaid],
},
});