-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathastro.config.mjs
More file actions
61 lines (59 loc) · 1.26 KB
/
astro.config.mjs
File metadata and controls
61 lines (59 loc) · 1.26 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
55
56
57
58
59
60
61
// @ts-check
import cloudflare from '@astrojs/cloudflare'
// import mdx from '@astrojs/mdx'
import sitemap from '@astrojs/sitemap'
import solid from '@astrojs/solid-js'
import { defineConfig } from 'astro/config'
import compressor from 'astro-compressor'
// import expressiveCode from 'astro-expressive-code'
import favicons from 'astro-favicons'
import robotsTxt from 'astro-robots-txt'
import sonda from 'sonda/astro'
import solidSvg from 'vite-plugin-solid-svg'
export default defineConfig({
prefetch: {
defaultStrategy: 'hover',
prefetchAll: true,
},
// TODO: Internal server error: Expected `miniflare` to be defined
// https://github.com/withastro/astro/issues/15524
adapter: import.meta.env.DEV
? undefined
: cloudflare({
prerenderEnvironment: 'node',
imageService: 'compile',
}),
devToolbar: {
enabled: false,
},
output: 'static',
site: 'https://palmdevs.me',
vite: {
plugins: [
solidSvg({
svgo: {
enabled: true,
},
}),
],
build: {
sourcemap: true,
},
},
experimental: {
clientPrerender: true,
},
image: {
layout: 'constrained',
},
integrations: [
solid(),
sitemap(),
// expressiveCode(),
// mdx(),
robotsTxt(),
favicons(),
compressor(),
process.env.NODE_ENV !== 'build' && sonda(),
],
})