统一小程序多环境请求地址
This commit is contained in:
@@ -123,7 +123,7 @@ const DEFAULT_DOMAINS = {
|
|||||||
local: 'http://127.0.0.1:80',
|
local: 'http://127.0.0.1:80',
|
||||||
tunnel: 'https://yunail.art',
|
tunnel: 'https://yunail.art',
|
||||||
'dev-remote': 'https://yunail.art',
|
'dev-remote': 'https://yunail.art',
|
||||||
trial: 'https://yunail.art',
|
trial: 'https://sit.yunail.art',
|
||||||
release: 'https://yunail.art'
|
release: 'https://yunail.art'
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -140,7 +140,7 @@ const DOMAIN_MAP = {
|
|||||||
* Purpose: DEFAULT_DEVELOP_TARGET supports config.js by holding or executing the default develop target page or API role.
|
* Purpose: DEFAULT_DEVELOP_TARGET supports config.js by holding or executing the default develop target page or API role.
|
||||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||||
*/
|
*/
|
||||||
const DEFAULT_DEVELOP_TARGET = IS_DEVTOOLS ? 'local' : 'dev-remote'
|
const DEFAULT_DEVELOP_TARGET = 'local'
|
||||||
/**
|
/**
|
||||||
* Purpose: DEVELOP_TARGET supports config.js by holding or executing the develop target page or API role.
|
* Purpose: DEVELOP_TARGET supports config.js by holding or executing the develop target page or API role.
|
||||||
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
* Usage: import, call, read, or update this const from the owning page/module while preserving the surrounding loading and permission flow.
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ module.exports = {
|
|||||||
local: 'http://127.0.0.1:80',
|
local: 'http://127.0.0.1:80',
|
||||||
tunnel: 'https://yunail.art',
|
tunnel: 'https://yunail.art',
|
||||||
'dev-remote': 'https://yunail.art',
|
'dev-remote': 'https://yunail.art',
|
||||||
trial: 'https://yunail.art',
|
trial: 'https://sit.yunail.art',
|
||||||
release: 'https://yunail.art'
|
release: 'https://yunail.art'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -127,12 +127,12 @@ const DEFAULT_DOMAINS = {
|
|||||||
local: 'http://127.0.0.1:80',
|
local: 'http://127.0.0.1:80',
|
||||||
tunnel: 'http://wcy111.top:18888',
|
tunnel: 'http://wcy111.top:18888',
|
||||||
'dev-remote': 'http://wcy111.top:18888',
|
'dev-remote': 'http://wcy111.top:18888',
|
||||||
trial: 'https://yunail.art',
|
trial: 'https://sit.yunail.art',
|
||||||
release: 'https://yunail.art'
|
release: 'https://yunail.art'
|
||||||
}
|
}
|
||||||
|
|
||||||
const DOMAIN_MAP = mergeDomains(DEFAULT_DOMAINS, localOverride.domains)
|
const DOMAIN_MAP = mergeDomains(DEFAULT_DOMAINS, localOverride.domains)
|
||||||
const DEFAULT_DEVELOP_TARGET = IS_DEVTOOLS ? 'local' : 'dev-remote'
|
const DEFAULT_DEVELOP_TARGET = 'local'
|
||||||
const DEVELOP_TARGET = Object.prototype.hasOwnProperty.call(localOverride, 'developTarget')
|
const DEVELOP_TARGET = Object.prototype.hasOwnProperty.call(localOverride, 'developTarget')
|
||||||
? String(localOverride.developTarget)
|
? String(localOverride.developTarget)
|
||||||
: DEFAULT_DEVELOP_TARGET
|
: DEFAULT_DEVELOP_TARGET
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ module.exports = {
|
|||||||
local: 'http://127.0.0.1:80',
|
local: 'http://127.0.0.1:80',
|
||||||
tunnel: 'http://dev.yunail.art:18888',
|
tunnel: 'http://dev.yunail.art:18888',
|
||||||
'dev-remote': 'http://dev.yunail.art:18888',
|
'dev-remote': 'http://dev.yunail.art:18888',
|
||||||
trial: 'https://yunail.art',
|
trial: 'https://sit.yunail.art',
|
||||||
release: 'https://yunail.art'
|
release: 'https://yunail.art'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user