-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
85 lines (84 loc) · 2.06 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
import path from 'node:path';
import { rehypeHeadingIds } from '@astrojs/markdown-remark';
import react from '@astrojs/react';
import starlight from '@astrojs/starlight';
import svelte from '@astrojs/svelte';
import tailwind from '@astrojs/tailwind';
import { defineConfig } from 'astro/config';
import million from 'million/compiler';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
import vercel from "@astrojs/vercel/static";
// https://astro.build/config
export default defineConfig({
site: 'https://shadylights.vercel.app',
output: "static",
adapter: vercel({
imageService: true,
}),
image: {
service: {
entrypoint: 'astro/assets/services/noop'
}
},
markdown: {
rehypePlugins: [rehypeHeadingIds, [rehypeAutolinkHeadings, {
// Wrap the heading text in a link.
behavior: 'wrap'
}]]
},
vite: {
build: {
rollupOptions: {
external: [
"sharp"
]
}
},
plugins: [million.vite({
mode: 'react',
server: true,
auto: {
threshold: 0.05,
skip: ['useBadHook', /badVariable/g]
}
})],
resolve: {
alias: {
$lib: path.resolve('./src/lib')
}
}
},
integrations: [react(), svelte(), tailwind({
config: {
applyBaseStyles: false
}
}), starlight({
title: 'ShadyLight',
logo: {
src: './src/assets/shadylight-logo-transparent.webp',
replacesTitle: true
},
favicon: '/favicon.ico',
customCss: ['./src/styles/tailwind.docs.css', '@fontsource/inter'],
components: {
SocialIcons: './src/components/SocialIcons.astro',
Head: './src/components/Head.astro',
Header: './src/components/Header.astro'
},
head: [
// Add a custom meta tag to define the author of all pages.
{
tag: 'meta',
attrs: {
name: 'author',
content: 'Hrihorii Ilin'
}
}],
titleDelimiter: '—',
lastUpdated: true,
social: {
github: 'https://github.com/Frikadellios',
twitter: 'https://twitter.com/devopsick'
}
})]
});