-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.ts
69 lines (66 loc) · 2.13 KB
/
.umirc.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
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
69
import { defineConfig } from "umi";
export default defineConfig({
npmClient: 'yarn',
title: 'Solist',
hash: true,
favicons: [
'https://solist.app/favicon.ico',
'https://solist.app/favicon.png',
'https://solist.app/favicon.svg'
],
scripts: [
{
content: '(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)}; m[i].l=1*new Date(); for (var j = 0; j < document.scripts.length; j++) {if (document.scripts[j].src === r) { return; }} k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)}) (window, document, "script", "https://cdn.jsdelivr.net/npm/yandex-metrica-watch/tag.js", "ym"); ym(91978311, "init", { clickmap:true, trackLinks:true, accurateTrackBounce:true, trackHash:true });',
charset: 'utf-8',
},
{
src: 'https://www.googletagmanager.com/gtag/js?id=G-3KMTS4MMKL',
async: true,
},
{
content: ' window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag(\'js\', new Date()); gtag(\'config\', \'G-3KMTS4MMKL\');',
charset: 'utf-8',
}
],
https: {
cert: '/etc/letsencrypt/live/solist.macrox.ru/fullchain.pem',
key: '/etc/letsencrypt/live/solist.macrox.ru/privkey.pem',
},
plugins: [
'@umijs/plugins/dist/antd',
'@umijs/plugins/dist/model',
'@umijs/plugins/dist/dva',
],
dva: {
immer: {
enableES5: true,
enableAllPlugins: true,
},
},
proxy: {
'/api': {
target: 'https://solist.app',
changeOrigin: true,
},
},
model: {},
antd: {
configProvider: {},
theme: {
token: {
colorPrimary: '#512da8',
controlHeight: 48,
controlInteractiveSize: 20,
controlOutline: 'none',
controlOutlineWidth: 0,
controlPaddingHorizontal: 20,
colorBorder: '#512da8',
fontFamily: 'Inter,Roboto, sans-serif',
borderRadius: 12,
}
}
},
extraBabelPlugins: process.env.NODE_ENV === 'production'
? ['babel-plugin-dynamic-import-node']
: []
});