-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathastro.config.ts
67 lines (65 loc) · 1.27 KB
/
astro.config.ts
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
63
64
65
66
67
import { defineConfig, sharpImageService } from 'astro/config';
import { remarkReadingTime } from './remark-reading-time.mjs';
import sitemap from '@astrojs/sitemap';
import tailwind from '@astrojs/tailwind';
import robotsTxt from 'astro-robots-txt';
import remarkToc from 'remark-toc';
import icon from 'astro-icon';
import vue from '@astrojs/vue';
const DEV_PORT: number = 4321;
// https://astro.build/config
export default defineConfig({
site: 'https://yunielacosta.com/',
server: {
/* Dev. server only */
port: DEV_PORT,
},
i18n: {
defaultLocale: 'en',
locales: ['es', 'en'],
},
integrations: [
sitemap({
i18n: {
defaultLocale: 'en',
locales: {
en: 'en',
es: 'es',
},
},
}),
tailwind(),
robotsTxt(),
icon({
iconDir: 'src/icons',
include: {
mdi: ['*'],
uit: ['*'],
'simple-icons': ['*'],
ph: ['*'],
ri: ['*'],
ic: ['*'],
charm: ['*'],
cib: ['*'],
ion: ['*'],
clarity: ['*'],
teenyicons: ['*'],
'akar-icons': ['*'],
},
}),
vue(),
],
vite: {
ssr: {
external: ['svgo'],
},
},
markdown: {
remarkPlugins: [remarkToc, remarkReadingTime],
gfm: true,
},
image: {
domains: ['avatars.githubusercontent.com', 'yunielacosta.com'],
service: sharpImageService(),
},
});