-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.ts
57 lines (55 loc) · 1.05 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
import react from '@astrojs/react';
import tailwind from '@astrojs/tailwind';
import i18n from '@astrolicious/i18n';
import { defineConfig } from 'astro/config';
import netlify from '@astrojs/netlify';
// https://astro.build/config
export default defineConfig({
site: 'https://astro-i18n-demo.netlify.app',
integrations: [
i18n({
defaultLocale: 'en',
locales: ['en', 'fr', 'it'],
pages: {
'/about': {
fr: '/a-propos',
it: '/chi-siamo',
},
'/blog': {
fr: '/le-blog',
it: '/il-blog',
},
'/blog/[slug]': {
fr: '/le-blog/[slug]',
},
'/tags': {
fr: '/le-tags',
it: '/il-tags',
},
'/tags/[tag]': {
fr: '/le-tags/[tag]',
it: '/il-tags/[tag]',
},
'/authors': {
fr: '/auteurs',
it: '/autori',
},
'/authors/[author]': {
fr: '/auteurs/[author]',
it: '/autori/[author]',
},
},
client: {
data: true,
paths: true,
},
sitemap: true,
}),
tailwind(),
react(),
],
output: 'hybrid',
adapter: netlify({
imageCDN: false,
}),
});