This commit is contained in:
hackrobot
2024-10-04 22:34:27 +08:00
parent 0b645c5f5f
commit 8107564d64
6 changed files with 8 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ module.exports = {
NODE_ENV: '"development"'
},
defineConstants: {
'process.env.TARO_API_API': JSON.stringify("development")
},
mini: {},
h5: {}

View File

@@ -1,5 +1,6 @@
const config = {
projectName: "cityh5",
date: "2023-12-2",
designWidth: 750,
deviceRatio: {
@@ -85,10 +86,10 @@ const config = {
// host: 'nomad.hackrobot.cn', // 替换为您的域名
// port: 10087, // 选择一个适当的端口号
proxy: {
'api': {
'/api/': {
target: JSON.parse('"http://localhost:8700"'), //本地调试端口
pathRewrite: {
'api/': '/'
'^/api/': '/'
},
changeOrigin: true
}

View File

@@ -3,6 +3,7 @@ module.exports = {
NODE_ENV: '"production"'
},
defineConstants: {
'process.env.TARO_API_API': JSON.stringify("production")
},
mini: {},
h5: {