-
Notifications
You must be signed in to change notification settings - Fork 1
/
gatsby-node.js
56 lines (48 loc) · 1.38 KB
/
gatsby-node.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
'use strict';
// Use this file for redirects instead of Netlify's _redirects.
// This keeps the configuration the same regardless of host.
exports.createPages = ({ boundActionCreators }) => {
const { createRedirect } = boundActionCreators;
createRedirect({
fromPath: `/bring-some-es6-awesome-with-esnext`,
toPath: `/archive/old-ember-post/`,
isPermanent: true,
redirectInBrowser: true
});
createRedirect({
fromPath: `/organize-your-ember-app-with-pods`,
toPath: `/archive/old-ember-post/`,
isPermanent: true,
redirectInBrowser: true
});
createRedirect({
fromPath: `/i18n-in-practice`,
toPath: `/archive/old-ember-post/`,
isPermanent: true,
redirectInBrowser: true
});
createRedirect({
fromPath: `/not-using-i18n-you-probably-should-be`,
toPath: `/archive/old-ember-post/`,
isPermanent: true,
redirectInBrowser: true
});
createRedirect({
fromPath: `/understanding-loading-substates-in-ember`,
toPath: `/archive/old-ember-post/`,
isPermanent: true,
redirectInBrowser: true
});
createRedirect({
fromPath: `/non-restful-api-calls-with-ember-data`,
toPath: `/archive/old-ember-post/`,
isPermanent: true,
redirectInBrowser: true
});
createRedirect({
fromPath: `/help-i-have-no-tests`,
toPath: `/archive/old-ember-post/`,
isPermanent: true,
redirectInBrowser: true
});
};