.env.production
1.25 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
# Whether to open mock
VITE_USE_MOCK = false
# public path
VITE_PUBLIC_PATH = /
# Delete console
VITE_DROP_CONSOLE = true
# Whether to enable gzip or brotli compression
# Optional: gzip | brotli | none
# If you need multiple forms, you can use `,` to separate
VITE_BUILD_COMPRESS = 'gzip'
# Whether to delete origin files when using compress, default false
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
# Basic interface address SPA
# VITE_GLOB_API_URL=http://47.99.141.212:8080/api
VITE_GLOB_API_URL=https://dev.thingskit.com/api
# File upload address, optional
# It can be forwarded by nginx or write the actual address directly
# VITE_GLOB_UPLOAD_URL=http://47.99.141.212:8080/api/yt/oss/upload
VITE_GLOB_UPLOAD_URL=https://dev.thingskit.com/api/yt/oss/upload
# Interface prefix
VITE_GLOB_API_URL_PREFIX=/yt
# Whether to enable image compression
VITE_USE_IMAGEMIN= false
# use pwa
VITE_USE_PWA = false
# Is it compatible with older browsers
VITE_LEGACY = true
# 实时数据的ws地址
VITE_WEB_SOCKET = wss://dev.thingskit.com/api/ws/plugins/telemetry?token=
# VITE_WEB_SOCKET = ws://47.99.141.212:8080/api/ws/plugins/telemetry?token=
#configuration
VITE_GLOB_CONFIGURATION = http://localhost:3000
# Content Security Policy
VITE_CONTENT_SECURITY_POLICY = true