-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.ts
More file actions
57 lines (56 loc) · 1.22 KB
/
astro.config.ts
File metadata and controls
57 lines (56 loc) · 1.22 KB
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 sitemap from "@astrojs/sitemap";
import vercel from "@astrojs/vercel";
import { defineConfig } from "astro/config";
import { resolve } from "path";
// https://astro.build/config
export default defineConfig({
site: process.env.SITE_URL,
i18n: {
defaultLocale: "it",
locales: ["it", "en"],
routing: {
prefixDefaultLocale: true,
},
},
integrations: [
sitemap({
filter: (page) =>
!page.includes("component-inventory") &&
!page.includes("/search") &&
!page.includes("/ricerca"),
i18n: {
defaultLocale: "it",
locales: {
it: "it",
en: "en",
},
},
}),
react(),
],
adapter: vercel(),
redirects: {
"/": {
status: 301,
destination: "/it",
},
},
vite: {
ssr: {
noExternal: ["dataviz-components"],
},
resolve: {
alias: {
"/^@(.*)$/": resolve("./src/*"),
"@splidejs/splide/src/css/core/index": resolve(
"node_modules/@splidejs/splide/src/css/core/index.scss",
),
"@bootstrap-src": "/node_modules/bootstrap-italia/src",
},
},
},
build: {
inlineStylesheets: "always",
},
});