Are you an LLM? You can read better optimized documentation at /front/base/configure.md for this page in Markdown format
Configuration β
Environment Variable Configuration β
By default, two environment configuration files are included: Development
and Production
. If you need to extend them, you can copy one and modify it according to your needs.
For details, please refer to the Vite - Environment Variables and Modes section.
YAML
# Page title
VITE_APP_TITLE = MineAdmin
# Port
VITE_APP_PORT = 2888
# Application root path
VITE_APP_ROOT_BASE = /
# API request URL, which will be set as the baseURL parameter in axios
VITE_APP_API_BASEURL = http://127.0.0.1:9501
# Routing mode: 'history' or 'hash' (default is hash, the one with #)
VITE_APP_ROUTE_MODE = hash
# Storage prefix
VITE_APP_STORAGE_PREFIX = mine_
# Whether to enable proxy
VITE_OPEN_PROXY = true
# Proxy prefix identifier
VITE_PROXY_PREFIX = /dev
# Whether to enable vConsole (useful for mobile debugging)
VITE_OPEN_vCONSOLE = false
# Whether to enable developer tools
VITE_OPEN_DEVTOOLS = false
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
YAML
# Page title
VITE_APP_TITLE = MineAdmin
# Application root path
VITE_APP_ROOT_BASE = /
# API request URL, which will be set as the baseURL parameter in axios
VITE_APP_API_BASEURL = /
# Routing mode: 'history' or 'hash' (default is hash, the one with #)
VITE_APP_ROUTE_MODE = hash
# Storage prefix
VITE_APP_STORAGE_PREFIX = mine_
# Whether to enable proxy
VITE_OPEN_PROXY = true
# Proxy prefix identifier
VITE_PROXY_PREFIX = /prod
# Whether to enable Mock during build
VITE_BUILD_MOCK = false
# Whether to generate sourcemap during build
VITE_BUILD_SOURCEMAP = false
# Whether to enable compression during build (supports gzip and brotli)
VITE_BUILD_COMPRESS = gzip,brotli
# Whether to generate archives after build (supports zip and tar)
VITE_BUILD_ARCHIVE =
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
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