-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.umirc.ts
66 lines (53 loc) · 2.08 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
/**
* Umijs configuration settings
* Please refer to https://umijs.org/config for more details
* or contact Evi Skitsanos https://www.linkedin.com/in/skitsanos/
*/
import dayjs from 'dayjs';
import manifest from './package.json';
export default ({
title: 'My Dashboard',
favicons: [],
styles: [
'https://fonts.googleapis.com/css?family=IBM+Plex+Mono:400,400i|IBM+Plex+Sans:300,400&display=swap',
'https://fonts.googleapis.com/css2?family=Work+Sans:wght@100;300;400&display=swap',
'https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@100;300;400&display=swap'
],
headScripts: [
{
content: 'console.log("Hello from the head! Modify your .umirc.ts")'
}
],
define: {
// the following are the default values for the application, and they are defined in @types/typings.d.ts
APP_NAME: 'My Dashboard',
APP_VERSION: `${manifest.version} (beta/${dayjs().format('YYYY-MM-DD')})`,
FEATURE_SMTP_ENABLED: false,
FEATURE_SSL_ENABLED: true,
INITIAL_SESSION:
{
'session': {
'user': {
'_key': '177651341',
'createdOn': 1696934748132,
'email': 'info@skitsanos.com',
'lastLogin': 1709038324097,
'updatedOn': 1709038324097,
'gravatar': 'https://www.gravatar.com/avatar/df4fd31987b27934b23f90da7af2feb7?d=robohash&s=150'
},
'token': 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzUxMiJ9.IntcInVzZXJJZFwiOlwiMTc3NjUxMzQxXCIsXCJleHBpcmVzT25cIjoxNzA5MDQxOTQ0NTEyfSI.7NsFhzhDPHH0Gf7IObsskxVWL_7Fdge5uWKviV771SE1FN72eeFH04Zet12WWx_Kx_1cmTrffXy7jB777tl8MQ'
}
}
},
mako: {},
svgr: {},
deadCode: {},
proxy: {
// '/api': {
// target: 'http://localhost:3000',
// changeOrigin: true,
// pathRewrite: {'^/api': ''},
// }
},
devtool: process.env.NODE_ENV === 'production' ? false : eval
});