Showing
1 changed file
with
24 additions
and
15 deletions
1 | # Whether to open mock | 1 | # Whether to open mock |
2 | -# VITE_USE_MOCK = true | 2 | +VITE_USE_MOCK = false |
3 | 3 | ||
4 | # public path | 4 | # public path |
5 | VITE_PUBLIC_PATH = / | 5 | VITE_PUBLIC_PATH = / |
6 | 6 | ||
7 | -# Cross-domain proxy, you can configure multiple | ||
8 | -# Please note that no line breaks | ||
9 | - | ||
10 | -# 本地 | ||
11 | -# VITE_PROXY = [["/api","http://192.168.10.123:8080/api"],["/upload","http://192.168.10.124:3300/upload"]] | ||
12 | - | ||
13 | -# 线上 | ||
14 | -VITE_PROXY = [["/api","http://101.133.234.90:8080/api"],["/upload","http://192.168.10.116:3300/upload"]] | ||
15 | - | ||
16 | -# 实时数据的ws地址 | ||
17 | -VITE_WEB_SOCKET = ws://101.133.234.90:8080/api/ws/plugins/telemetry?token= | ||
18 | - | ||
19 | # Delete console | 7 | # Delete console |
20 | VITE_DROP_CONSOLE = true | 8 | VITE_DROP_CONSOLE = true |
21 | 9 | ||
10 | +# Whether to enable gzip or brotli compression | ||
11 | +# Optional: gzip | brotli | none | ||
12 | +# If you need multiple forms, you can use `,` to separate | ||
13 | +VITE_BUILD_COMPRESS = 'gzip' | ||
14 | + | ||
15 | +# Whether to delete origin files when using compress, default false | ||
16 | +VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false | ||
17 | + | ||
22 | # Basic interface address SPA | 18 | # Basic interface address SPA |
23 | -VITE_GLOB_API_URL=/api | 19 | +VITE_GLOB_API_URL=http://101.133.234.90:8080/api |
24 | 20 | ||
25 | # File upload address, optional | 21 | # File upload address, optional |
26 | -VITE_GLOB_UPLOAD_URL=/upload | 22 | +# It can be forwarded by nginx or write the actual address directly |
23 | +VITE_GLOB_UPLOAD_URL=http://101.133.234.90:3300/upload | ||
27 | 24 | ||
28 | # Interface prefix | 25 | # Interface prefix |
29 | VITE_GLOB_API_URL_PREFIX=/yt | 26 | VITE_GLOB_API_URL_PREFIX=/yt |
27 | + | ||
28 | +# Whether to enable image compression | ||
29 | +VITE_USE_IMAGEMIN= false | ||
30 | + | ||
31 | +# use pwa | ||
32 | +VITE_USE_PWA = false | ||
33 | + | ||
34 | +# Is it compatible with older browsers | ||
35 | +VITE_LEGACY = true | ||
36 | + | ||
37 | +# 实时数据的ws地址 | ||
38 | +VITE_WEB_SOCKET = ws://101.133.234.90:8080/api/ws/plugins/telemetry?token= |