-
Notifications
You must be signed in to change notification settings - Fork 0
/
redirects.js
35 lines (33 loc) · 951 Bytes
/
redirects.js
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
const REDIRECTS = [
{
old: "/drive",
new: "https://drive.google.com/drive/u/0/folders/1Jpscfhg0XDrXZgClblQkPHSeOZRkNoTy",
},
{
old: "/bulletsanctum",
new: "https://64bitpandas.itch.io/bullet-sanctum",
},
{
old: "/eggmageddon",
new: "https://epicrider.itch.io/eggmageddon",
},
{
old: "/bulletheaven",
new: "https://epicrider.itch.io/bullet-heaven",
},
{
old: "/convergence",
new: "https://xkindredkinesis.itch.io/convergence",
},
{
old: "/irtp",
new: "https://64bitpandas.itch.io/its-rude-to-point",
},
];
// Map to createRedirect (no need to modify anything below if creating new redirects)
exports.createPages = ({ graphql, actions }) => {
const { createRedirect } = actions; //actions is collection of many actions - https://www.gatsbyjs.org/docs/actions
REDIRECTS.map((link) => {
createRedirect({ fromPath: link.old, toPath: link.new, isPermanent: true });
});
};