-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatic.config.js
68 lines (63 loc) · 2.1 KB
/
static.config.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
57
58
59
60
61
62
63
64
65
66
67
68
// docs at https://github.com/nozzle/react-static/blob/master/README.md to learn more!
import { reloadRoutes } from 'react-static/node';
import jdown from 'jdown';
import chokidar from 'chokidar';
import { homedir } from 'os';
chokidar.watch('./src/content').on('all', () => reloadRoutes());
export default {
getSiteData: () => ({
title: 'Unspecified',
}),
getRoutes: async () => {
const { legal, home, aboutClarkSell } = await jdown('./src/content');
return [
{
path: '/',
component: 'src/pages/Home',
},
{
path: '/Contact',
component: 'src/pages/Contact',
},
{
path: '/Legal/TermsOfUsage',
component: 'src/pages/legal/TermsOfUse',
getData: () => legal.termsOfUse,
},
{
path: '/Legal/Privacy',
component: 'src/pages/legal/Privacy',
getData: () => legal.privacy,
},
{
path: '/Legal/Copyright',
component: 'src/pages/legal/Copyright',
getData: () => legal.copyright,
},
{
path: '/About/ClarkSell',
component: 'src/pages/About/ClarkSell',
},
{
path: '/About/ClarkSell/Microsoft',
component: 'src/pages/About/ClarkSell/Microsoft',
getData: () => aboutClarkSell.microsoft,
},
{
path: '/About/ClarkSell/Allstate',
component: 'src/pages/About/ClarkSell/Allstate',
getData: () => aboutClarkSell.allstate,
},
{
path: '/About/ClarkSell/Telerik',
component: 'src/pages/About/ClarkSell/Telerik',
getData: () => aboutClarkSell.telerik,
},
{
is404: true,
component: 'src/pages/Home/PageNotFound',
getData: () => home.pageNotFound,
},
];
},
};