-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathastro.config.mjs
52 lines (50 loc) · 1.42 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
import { defineConfig } from "astro/config"
import solidJs from "@astrojs/solid-js"
import node from "@astrojs/node"
import mdx from "@astrojs/mdx"
// https://astro.build/config
export default defineConfig({
site: "https://revolt.chat",
output: "server",
integrations: [solidJs(), mdx()],
adapter: node({
mode: "middleware",
}),
redirects: {
"/terms": {
status: 307,
destination: "/legal/terms",
},
"/privacy": {
status: 307,
destination: "/legal/privacy",
},
"/aup": {
status: 307,
destination: "/legal/community-guidelines",
},
".well-known/change-password": {
status: 307,
destination: "/login/reset",
},
"/posts": {
status: 307,
destination: "/updates",
},
"/posts/[slug]": {
status: 307,
destination: "/updates/[slug]",
},
"/updates/500K-users": {
// DO! NOT! EVER! USE! UPPERCASE! CHARACTERS! IN! SLUGS!
status: 307,
destination: "/updates/500k-users",
},
"/updates/100K-users": {
// I! MEAN! IT!
// Okay, this one was on me, but you're the one who repeated my mistake in the 500K post Jen. - Vale
status: 307,
destination: "/updates/100k-users",
},
},
})