-
Notifications
You must be signed in to change notification settings - Fork 501
Expand file tree
/
Copy pathastro.config.js
More file actions
53 lines (43 loc) · 993 Bytes
/
astro.config.js
File metadata and controls
53 lines (43 loc) · 993 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
45
46
47
48
49
50
51
52
53
// @ts-check
import { defineConfig, fontProviders } from 'astro/config'
import mdx from '@astrojs/mdx'
import sitemap from '@astrojs/sitemap'
import rehypeExternalLinks from 'rehype-external-links'
import tailwindcss from '@tailwindcss/vite'
import cloudflare from '@astrojs/cloudflare'
export default defineConfig({
site: 'https://hyperui.dev',
integrations: [
mdx({
optimize: true,
}),
sitemap(),
],
vite: {
plugins: [tailwindcss()],
},
markdown: {
rehypePlugins: [
[
rehypeExternalLinks,
{
rel: ['noreferrer'],
target: '_blank',
},
],
],
syntaxHighlight: false,
},
fonts: [
{
cssVariable: '--font-google-sans-flex',
name: 'Google Sans Flex',
provider: fontProviders.google(),
weights: [400, 500, 600, 700, 800],
},
],
redirects: {
'/components/marketing/forms': '/components/marketing/contact-forms',
},
adapter: cloudflare(),
})