-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
53 lines (52 loc) · 1.33 KB
/
Copy pathastro.config.mjs
File metadata and controls
53 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
import { defineConfig, fontProviders } from 'astro/config'
import cloudflare from '@astrojs/cloudflare'
import sitemap from '@astrojs/sitemap'
export default defineConfig({
output: 'server',
// Prefetch every internal link as soon as it enters the viewport, so
// navigation feels instant (SPA-like) without client-side routing.
prefetch: {
prefetchAll: true,
defaultStrategy: 'viewport',
},
devToolbar: {
enabled: false,
},
adapter: cloudflare({
imageService: 'compile',
platformProxy: {
enabled: true,
},
}),
site: 'https://www.hawkings.me',
fonts: [
{
provider: fontProviders.google(),
name: 'Bricolage Grotesque',
cssVariable: '--font-bricolage',
weights: ['500 700'],
styles: ['normal'],
subsets: ['latin'],
fallbacks: ['sans-serif'],
},
{
provider: fontProviders.google(),
name: 'Instrument Sans',
cssVariable: '--font-instrument',
weights: [400, 500, 600],
styles: ['normal'],
subsets: ['latin'],
fallbacks: ['system-ui', 'sans-serif'],
},
{
provider: fontProviders.google(),
name: 'Geist Mono',
cssVariable: '--font-geist-mono',
weights: [400, 500],
styles: ['normal'],
subsets: ['latin'],
fallbacks: ['monospace'],
},
],
integrations: [sitemap()],
})