-
Notifications
You must be signed in to change notification settings - Fork 1
/
astro.config.mjs
62 lines (59 loc) · 1.46 KB
/
astro.config.mjs
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
62
import { defineConfig, envField } from 'astro/config';
import cloudflare from '@astrojs/cloudflare'
import react from '@astrojs/react'
import tailwind from '@astrojs/tailwind'
import mdx from '@astrojs/mdx'
import sitemap from '@astrojs/sitemap'
import { resolve } from 'node:path'
import { name, description, repository } from './package.json'
// https://astro.build/config
export default defineConfig({
// normal config
site: 'https://email-reciever.pages.dev',
server: {
host: true,
port: 10990,
open: true
},
integrations: [mdx(), sitemap(), react(), tailwind({
nesting: true
})],
prefetch: {
prefetchAll: true,
defaultStrategy: 'viewport'
},
vite: {
resolve: {
alias: {
'@': resolve(import.meta.dirname, 'src')
}
}
},
experimental: {
contentCollectionCache: true,
clientPrerender: true,
globalRoutePriority: true,
serverIslands: true,
env: {
schema: {
SITETITLE: envField.string({ context: 'client', access: 'public', default: name }),
SITEDESCRIPTION: envField.string({
context: 'client', access: 'public', default: description
}),
SITEURL: envField.string({
context: 'client', access: 'public', default: repository.url
})
},
validateSecrets: true
}
},
markdown: {
shikiConfig: {
themes: {
dark: 'vitesse-dark',
light: 'vitesse-light'
},
wrap: true
}
}
});