-
Notifications
You must be signed in to change notification settings - Fork 37
/
Copy pathastro.config.mjs
73 lines (64 loc) · 1.55 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
// @ts-check
import { defineConfig } from "astro/config";
import vercel from "@astrojs/vercel";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import react from "@astrojs/react";
// https://astro.build/config
export default defineConfig({
site: "https://iammatthias.com",
output: "static",
adapter: vercel({}),
image: {
domains: ["https://wsrv.nl/"],
},
prefetch: {
prefetchAll: true,
},
vite: {
define: {
"process.env.NODE_DEBUG": "false",
global: "globalThis",
},
build: {
target: "esnext",
},
},
redirects: {
"/post/1563778800000": {
status: 302,
destination: "/notes/1563778800000-flatframe",
},
"/post/1587970800000": {
status: 302,
destination: "/notes/1587970800000-sourdough",
},
"/post/1687071600000": {
status: 302,
destination: "/notes/1687071600000-feels-like-summer",
},
"/post/1681369200000": {
status: 302,
destination: "/posts/1681369200000-ai-legion-on-bluesky",
},
"/post/1670659200001": {
status: 302,
destination: "/posts/1670659200001-obsidian-as-a-cms",
},
"/post/1691436904927": {
status: 302,
destination: "/posts/1691436904927-deploy-html-on-replit",
},
"/post/1699332127006": {
status: 302,
destination: "/posts/1699332127006-revisiting-obsidian-as-a-cms",
},
},
integrations: [
mdx(),
sitemap({
filter: (page) => !page.includes("/api/") && !page.includes("/onchain-analytics/"),
}),
react(),
],
});