-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
42 lines (40 loc) · 928 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
import { defineConfig } from "astro/config";
import sitemap from "@astrojs/sitemap";
import mdx from "@astrojs/mdx";
import { algolia } from "./plugins/index-to-algolia";
// set to false if you want faster local builds
const optimiseImages = true;
// https://astro.build/config
export default defineConfig({
trailingSlash: "always",
site: "https://abisummers.com",
i18n: {
defaultLocale: "en",
locales: ["en", "fr"],
},
integrations: [
sitemap({
i18n: {
defaultLocale: "en",
locales: {
en: "en",
fr: "fr",
},
},
}),
mdx(),
process.env.ALGOLIA_WRITE_KEY &&
algolia({
appId: "1AWHE68HXJ",
apiKey: process.env.ALGOLIA_WRITE_KEY,
indexName: "abisummers.com",
}),
],
...(optimiseImages === false
? {
image: {
service: passthroughImageService(),
},
}
: {}),
});