修复 开发环境中使用docker的一些问题 📝 (#944)
* 修复docker 开发环境问题 📝 Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: tscuite <64051240+tscuite@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
co-authored by
github-actions[bot]
tscuite
parent
b147c4faaa
commit
b459413c0e
@@ -3,3 +3,5 @@ VITE_CLI_PORT = 8080
|
||||
VITE_SERVER_PORT = 8888
|
||||
VITE_BASE_API = /api
|
||||
VITE_BASE_PATH = http://127.0.0.1
|
||||
// 如果使用docker-compose开发模式,设置为下面的地址
|
||||
//VITE_BASE_PATH = http://177.7.0.12
|
||||
|
||||
@@ -53,6 +53,7 @@ export default ({
|
||||
'process.env': {}
|
||||
},
|
||||
server: {
|
||||
// 如果使用docker-compose开发模式,设置为false
|
||||
open: true,
|
||||
port: process.env.VITE_CLI_PORT,
|
||||
proxy: {
|
||||
|
||||
Reference in New Issue
Block a user