-
Notifications
You must be signed in to change notification settings - Fork 11
/
astro.config.mjs
47 lines (45 loc) · 947 Bytes
/
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
import { defineConfig } from 'astro/config';
import mdx from "@astrojs/mdx";
import compress from "astro-compress";
import tailwind from "@astrojs/tailwind";
import cloudflare from "@astrojs/cloudflare";
// https://astro.build/config
export default defineConfig({
// i18n settings
i18n: {
defaultLocale: "en",
locales: ["en", "ru", {
path: "ru",
codes: ["ru", "ru-RU"]
}],
routing: {
prefixDefaultLocale: true
},
fallback: {
ru: "en"
}
},
integrations: [mdx(), compress({
CSS: true,
HTML: false,
Image: false,
JavaScript: true,
SVG: false
}), tailwind()],
// site: 'http://localhost:4321',
prefetch: {
prefetchAll: true,
defaultStrategy: 'viewport'
},
experimental: {
clientPrerender: true
},
output: "hybrid",
adapter: cloudflare({
mode: 'directory',
functionPerRoute: true,
routes: {
strategy: 'auto'
}
})
});