-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.dumirc.ts
40 lines (39 loc) · 1.27 KB
/
.dumirc.ts
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
import { defineConfig } from 'dumi';
export default defineConfig({
favicons: ['/favicon.ico'],
autoAlias: false,
themeConfig: {
name: 'React Flow',
logo: '/favicon.ico',
prefersColor: { default: 'auto' },
editLink:
'https://github.com/youngjuning/reactflow-cn.js.org/edit/main/{filename}',
socialLinks: {
github: 'https://github.com/youngjuning/reactflow-cn.js.org',
twitter: 'https://twitter.com/luozhu2021',
},
hd: { rules: [] },
footer: `Made with ❤️ by <a href="https://github.com/youngjuning" target="_blank">紫升</a><br/><div style="width:180px;margin: 0 auto"><script async type="text/javascript" id="clstr_globe" src="//clustrmaps.com/globe.js?d=kvgeYP8qIu8lbwRcPtpsgFsJddybCkmKoAYKFHF6JY8"></script></div>`,
},
styles: [
`ins.adsbygoogle[data-ad-status=unfilled] {
display: none !important;
}`,
],
theme: {
'@c-primary': '#FF0073',
},
publicPath: '/',
analytics: {
ga_v2: 'G-W512Y7N0FN',
},
sitemap: {
hostname: 'https://reactflow-cn.js.org',
},
hash: true,
exportStatic: {},
...(process.env.NODE_ENV === 'development' ? {} : { ssr: {} }),
headScripts: [
{src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js', async: true, crossorigin: 'anonymous'}
]
});