-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathastro.config.mjs
More file actions
54 lines (52 loc) · 1.33 KB
/
Copy pathastro.config.mjs
File metadata and controls
54 lines (52 loc) · 1.33 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import { defineConfig, fontProviders } from 'astro/config';
import cloudflare from '@astrojs/cloudflare';
import react from '@astrojs/react';
import sitemap from '@astrojs/sitemap';
import tailwindcss from '@tailwindcss/vite';
export default defineConfig({
site: 'https://draftside.ai',
integrations: [
react(),
sitemap({
filter: (page) => !/\/write\/?$/.test(page)
})
],
fonts: [
{
name: 'Inter',
cssVariable: '--font-inter',
provider: fontProviders.google(),
weights: ['400 600'],
styles: ['normal'],
subsets: ['latin'],
fallbacks: ['system-ui', 'sans-serif']
},
{
name: 'Geist Mono',
cssVariable: '--font-geist-mono',
provider: fontProviders.local(),
fallbacks: ['ui-monospace', 'monospace'],
options: {
variants: [
{
weight: 400,
style: 'normal',
src: ['./src/assets/fonts/GeistMono-Variable.woff2']
}
]
}
}
],
vite: {
plugins: [tailwindcss()],
resolve: {
dedupe: ['react', 'react-dom', 'react-dom/client', 'react/jsx-runtime']
},
optimizeDeps: {
include: ['react', 'react-dom', 'react-dom/client', '@tiptap/react']
}
},
adapter: cloudflare({
imageService: { build: 'compile', runtime: 'cloudflare-binding' }
})
});