-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.ts
More file actions
56 lines (55 loc) · 1.7 KB
/
Copy pathastro.config.ts
File metadata and controls
56 lines (55 loc) · 1.7 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
import { fileURLToPath } from "node:url";
import { defineConfig } from "astro/config";
import svelte from "@astrojs/svelte";
import sitemap from "@astrojs/sitemap";
import tailwindcss from "@tailwindcss/vite";
import svg from "@poppanator/sveltekit-svg";
export default defineConfig({
site: "https://rekylee.github.io",
output: "static",
base: process.env.BASE_PATH,
i18n: {
locales: ["en", "he"],
defaultLocale: "en",
routing: {
prefixDefaultLocale: true,
redirectToDefaultLocale: false,
},
},
integrations: [svelte(), sitemap()],
vite: {
resolve: {
alias: {
$lib: fileURLToPath(new URL("./src/lib", import.meta.url)),
},
},
plugins: [
tailwindcss(),
svg({
includePaths: ["./src/lib/icons/"],
svgoOptions: {
multipass: true,
plugins: [
{
name: "preset-default",
params: { overrides: { removeViewBox: false } },
},
{ name: "removeAttrs", params: { attrs: "(fill|stroke)" } },
],
},
}),
svg({
includePaths: ["./src/lib/assets/"],
svgoOptions: {
multipass: true,
plugins: [
{
name: "preset-default",
params: { overrides: { removeViewBox: false } },
},
],
},
}),
],
},
});