-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathastro.config.mjs
59 lines (58 loc) · 2.11 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import db from "@astrojs/db";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwindcss from "@tailwindcss/vite";
import vercel from "@astrojs/vercel";
import embeds from "astro-embed/integration";
import icon from "astro-icon";
import { defineConfig } from "astro/config";
// https://astro.build/config
export default defineConfig({
output: "static",
site: "https://flavienbonvin.com",
vite: {
plugins: [tailwindcss()],
},
integrations: [
sitemap({
filter: (page) =>
page !== "https://flavienbonvin.com/newsletter/validate/" &&
page !== "https://flavienbonvin.com/newsletter/validated/",
}),
embeds({
services: {
LinkPreview: false,
},
}),
mdx({
syntaxHighlight: "shiki",
shikiConfig: {
theme: "dracula",
},
}),
icon(),
db(),
],
markdown: {
syntaxHighlight: "shiki",
shikiConfig: {
theme: "dracula",
},
},
adapter: vercel(),
redirects: {
"/reduce-next-js-bundle/": "/articles/reduce-next-js-bundle",
"/amazing-nextjs-libraries-that-makes-coding-easier/":
"/articles/amazing-nextjs-libraries-that-makes-coding-easier",
"/what-makes-the-us-ansi-keyboard-is-the-best-layout-for-developers/":
"/articles/what-makes-the-us-ansi-keyboard-is-the-best-layout-for-developers",
"/quit-spotlight-and-alfred-10-best-raycast-extensions-for-web-developers/":
"/articles/quit-spotlight-and-alfred-10-best-raycast-extensions-for-web-developers",
"/how-tana-made-me-choose-obsidian-as-my-note-taking-app-and-its-amazing/":
"/articles/how-tana-made-me-choose-obsidian-as-my-note-taking-app-and-its-amazing",
"/slow-software-a-sign-of-appreciation-for-developers/":
"/articles/slow-software-appreciation-for-developers",
"/some-great-slow-software-companies/":
"/articles/slow-software-great-slow-software-companies",
},
});