-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
37 lines (35 loc) · 1.07 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
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import tailwind from "@astrojs/tailwind";
import preact from "@astrojs/preact";
import sitemap from '@astrojs/sitemap';
import partytown from '@astrojs/partytown';
import cloudflare from "@astrojs/cloudflare";
import robotsTxt from "astro-robots-txt";
// https://astro.build/config
export default defineConfig({
site: 'https://blog.onelitefeather.net',
integrations: [mdx(), sitemap({
i18n: {
defaultLocale: 'en', // All urls that don't contain `es` or `fr` after `https://stargazers.club/` will be treated as default locale, i.e. `en`
locales: {
en: 'en-US', // The `defaultLocale` value must present in `locales` keys
de: 'de-DE',
},
},
}), preact(), robotsTxt(), partytown({
config: {
forward: ["dataLayer.push"]
}
})],
i18n: {
defaultLocale: "en",
locales: ["en", "de"],
routing: {
prefixDefaultLocale: true,
redirectToDefaultLocale: true
}
},
output: "server",
adapter: cloudflare({ imageService: 'cloudflare' })
});