-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstatic.config.js
46 lines (43 loc) · 965 Bytes
/
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
// Though this file is optional, there are SO MANY COOL THINGS you can do here.
// Read the docs at https://github.com/nozzle/react-static/blob/master/README.md to learn more!
import React, { Component } from 'react';
export default {
getRoutes: async () => {
return [
{
path: '/',
},
{
path: '/roadmap',
},
{
path: '/blog-1'
},
{
path: '/team'
},
{
path: '/news'
},
]
},
Html: class CustomHtml extends Component {
render() {
const {Html, Head, Body, children } = this.this.props
// const sheet = new ServerStyleShoot()
// const newChildren = sheet.collectStyles(children)
// const styleTags = sheet.getStyleElement()
return (
<Html>
<Head>
<meta name='viewport' content='width=device-width, initial-scale=1' />
{/* {styleTags} */}
</Head>
<Body>
{children}
</Body>
</Html>
)
}
},
}