Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
quantum-blocks
Commits
82ad33fc
Commit
82ad33fc
authored
May 20, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build(test.config): 修改测试环境接口地址为apollo
parent
e36a2e0f
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
6 deletions
+27
-6
test.config.ts
app/web/config/test.config.ts
+4
-6
typings.d.ts
app/web/config/typings.d.ts
+4
-0
config.test.ts
config/config.test.ts
+15
-0
typings.d.ts
config/typings.d.ts
+4
-0
No files found.
app/web/config/test.config.ts
View file @
82ad33fc
import
apollo
from
'
../../../config/apollo.json
'
;
const
protocol
=
EASY_ENV_IS_BROWSER
?
window
.
location
.
protocol
:
'
https
'
;
const
protocol
=
EASY_ENV_IS_BROWSER
?
window
.
location
.
protocol
:
'
https
'
;
const
{
api
,
qiniu
}
=
apollo
;
export
default
{
export
default
{
apiHost
:
`https://quantum-blocks-vcc2.liangkebang.net/`
,
...
api
,
h5Host
:
'
https://quantum-h5-vcc2.liangkebang.net/
'
,
...
qiniu
,
opapiHost
:
'
https://opapi-vcc2.liangkebang.net
'
,
qiniuHost
:
`https://appsync.lkbang.net/`
,
shenceUrl
:
`
${
protocol
}
//bn.xyqb.com/sa?project=production`
,
shenceUrl
:
`
${
protocol
}
//bn.xyqb.com/sa?project=production`
,
qiniuUpHost
:
`
${
protocol
}
//up-z0.qiniup.com`
,
};
};
app/web/config/typings.d.ts
0 → 100644
View file @
82ad33fc
declare
module
"
*.json
"
{
const
value
:
any
;
export
default
value
;
}
\ No newline at end of file
config/config.test.ts
View file @
82ad33fc
import
{
Application
,
EggAppConfig
}
from
'
egg
'
;
import
{
Application
,
EggAppConfig
}
from
'
egg
'
;
import
apollo
from
'
./apollo.json
'
;
const
{
mysql
,
redis
}
=
apollo
;
export
default
(
appInfo
:
EggAppConfig
)
=>
{
export
default
(
appInfo
:
EggAppConfig
)
=>
{
const
exports
:
any
=
{};
const
exports
:
any
=
{};
const
localMysqlConfig
=
{
dialect
:
'
mysql
'
,
...
mysql
.
low_code
};
exports
.
sequelize
=
localMysqlConfig
;
exports
.
redis
=
{
default
:
{
keyPrefix
:
appInfo
.
name
+
'
:
'
,
},
client
:
redis
};
return
exports
;
return
exports
;
};
};
config/typings.d.ts
0 → 100644
View file @
82ad33fc
declare
module
"
*.json
"
{
const
value
:
any
;
export
default
value
;
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment