-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstatic.config.js
More file actions
57 lines (56 loc) · 1.98 KB
/
static.config.js
File metadata and controls
57 lines (56 loc) · 1.98 KB
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
import path from 'path'
import React, { Component } from 'react'
export default {
plugins: ['react-static-plugin-typescript'],
entry: path.join(__dirname, 'src', 'index.tsx'),
getSiteData: () => ({
title: 'React Static'
}),
paths: {
public: 'public', // The public directory (files copied to dist during build)
},
Document: class CustomHtml extends Component {
render() {
const { Html, Head, Body, children, renderMeta } = this.props
return (
<Html itemScope itemType="http://schema.org/Article">
<Head>
<title>MYDAX</title>
<meta charSet="UTF-8" />
<link rel="icon" href="/favicon.png" />
<link
href="https://fonts.googleapis.com/css?family=Roboto"
rel="stylesheet"
/>
{renderMeta.styleTags}
{renderMeta.helmet && renderMeta.helmet.title.toComponent()}
{renderMeta.helmet && renderMeta.helmet.meta.toComponent()}
<link rel="manifest" href="manifest.json" />
<meta
name="viewport"
content="width=device-width, initial-scale=1"
/>
<meta httpEquiv="content-language" content="en" />
<meta itemProp="name" content="MyBit DAX" />
<meta itemProp="description" content="Decentralized Trading" />
<meta name="robots" content="index,follow" />
<meta name="theme-color" content="#1890ff" />
<meta
itemProp="description"
content="Powering safe, solvent and trustless trading of any asset."
/>
<meta
name="Description"
content="Powering safe, solvent and trustless trading of any asset."
/>
<meta
name="Description"
content="Powering safe, solvent and trustless trading of any asset."
/>
</Head>
<Body>{children}</Body>
</Html>
)
}
}
}