.env.development
1.39 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
# Whether to open mock
# VITE_USE_MOCK = true
# public path
VITE_PUBLIC_PATH = /
# Cross-domain proxy, you can configure multiple
# Please note that no line breaks
# 本地
# VITE_PROXY = [["/api","http://localhost:8080/api"]]
# 线上演示环境
# VITE_PROXY = [["/api","http://101.133.234.90:8080/api"]]
# 线上测试环境
# VITE_PROXY = [["/api","http://localhost:8080/api"],["/thingskit-drawio","http://localhost:3000/"]]
VITE_PROXY = [["/api","https://dev.thingskit.com/api"],["/thingskit-drawio","http://localhost:3000/"]]
# VITE_PROXY = [["/api","http://121.37.251.8:8080/api"],["/thingskit-drawio","http://localhost:3000/"]]
# VITE_PROXY = [["/api","http://192.168.10.136:8080/api"],["/thingskit-drawio","http://192.168.10.136:8080/api"]]
# 实时数据的ws地址
# VITE_WEB_SOCKET = ws://localhost:8080/api/ws/plugins/telemetry?token=
# VITE_WEB_SOCKET = ws://44.99.141.212:8080/api/ws/plugins/telemetry?token=
VITE_WEB_SOCKET = ws://dev.thingskit.com/api/ws/plugins/telemetry?token=
# VITE_WEB_SOCKET = ws://121.37.251.8:8080/api/ws/plugins/telemetry?token=
# Delete console
VITE_DROP_CONSOLE = true
# Basic interface address SPA
VITE_GLOB_API_URL=/api
# File upload address, optional
VITE_GLOB_UPLOAD_URL=/api/yt/oss/upload
# Interface prefix
VITE_GLOB_API_URL_PREFIX=/yt
#configuration
VITE_GLOB_CONFIGURATION = /thingskit-drawio
# Content Security Policy
VITE_CONTENT_SECURITY_POLICY = false