-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathastro.config.ts
More file actions
40 lines (38 loc) · 1.11 KB
/
astro.config.ts
File metadata and controls
40 lines (38 loc) · 1.11 KB
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
// @ts-check
import react from '@astrojs/react'
import sitemap from '@astrojs/sitemap'
import tailwindcss from '@tailwindcss/vite'
import { defineConfig, fontProviders } from 'astro/config'
import expressiveCode from 'astro-expressive-code'
import remarkDirective from 'remark-directive' /* Handle ::: directives as nodes */
import { remarkAdmonitions } from './src/plugins/remark-admonitions' /* Add admonitions */
// https://astro.build/config
export default defineConfig({
site: 'https://nodejsdesignpatterns.com',
integrations: [react(), expressiveCode(), sitemap()],
markdown: {
remarkPlugins: [remarkDirective, remarkAdmonitions],
},
vite: {
plugins: [tailwindcss()],
},
experimental: {
fonts: [
{
provider: fontProviders.google(),
name: 'Hanuman',
cssVariable: '--font-base-serif',
},
{
provider: fontProviders.google(),
name: 'Atkinson Hyperlegible',
cssVariable: '--font-base-sans',
},
{
provider: fontProviders.google(),
name: 'Cascadia Mono',
cssVariable: '--font-base-mono',
},
],
},
})