-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
46 lines (37 loc) · 969 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
import { defineConfig } from 'astro/config';
import tailwind from "@astrojs/tailwind";
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex'
// https://astro.build/config
export default defineConfig({
integrations: [tailwind()],
markdown: {
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
},
i18n: {
defaultLocale: "en",
locales: ["it", "en"],
// Prefix for en default lang.
prefixDefault: true,
redirectToDefaultLocale: true,
// If it/en is not working, try to change the fallback to the opposite.
fallback: {
"it": "en",
},
},
/*
Non usato alla fine la modalità hybrid.
La api deve essere in pages/api.
Il file api endpoint deve essere .ts.
import node from "@astrojs/node";
output: 'hybrid',
// Sostituire con Netlify in deploy.
adapter: node({
mode: "standalone"
})
*/
redirects: {
'/blog/index.astro': '/blog/Blog',
},
});