Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
5
51business
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
方斌
51business
Commits
dfcd7a72
Commit
dfcd7a72
authored
Apr 18, 2020
by
任国军
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add bodyParser
parent
63ee2e9c
Pipeline
#21851
passed with stage
in 3 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
1 deletion
+16
-1
config.default.js
config/config.default.js
+6
-1
config.local.js
config/config.local.js
+5
-0
config.prod.js
config/config.prod.js
+5
-0
No files found.
config/config.default.js
View file @
dfcd7a72
...
@@ -18,12 +18,17 @@ module.exports = appInfo => {
...
@@ -18,12 +18,17 @@ module.exports = appInfo => {
// add your middleware config here
// add your middleware config here
config
.
middleware
=
[
'errorHandler'
];
config
.
middleware
=
[
'errorHandler'
];
// add your user config here
// add your user config here
const
userConfig
=
{
const
userConfig
=
{
// myAppName: 'egg',
// myAppName: 'egg',
};
};
exports
.
bodyParser
=
{
jsonLimit
:
'1mb'
,
formLimit
:
'1mb'
,
};
return
config
;
return
config
;
};
};
config/config.local.js
View file @
dfcd7a72
...
@@ -191,5 +191,10 @@ module.exports = appInfo => {
...
@@ -191,5 +191,10 @@ module.exports = appInfo => {
config
.
COURSE_WX_APPID
=
'wx07a5f0ed5bdf4751'
;
config
.
COURSE_WX_APPID
=
'wx07a5f0ed5bdf4751'
;
config
.
COURSE_WX_SECRET
=
'a1b2d32b018988176181497bd74a0b7d'
;
config
.
COURSE_WX_SECRET
=
'a1b2d32b018988176181497bd74a0b7d'
;
exports
.
bodyParser
=
{
jsonLimit
:
'1mb'
,
formLimit
:
'1mb'
,
};
return
config
;
return
config
;
};
};
config/config.prod.js
View file @
dfcd7a72
...
@@ -134,6 +134,11 @@ module.exports = appInfo => {
...
@@ -134,6 +134,11 @@ module.exports = appInfo => {
},
},
};
};
exports
.
bodyParser
=
{
jsonLimit
:
'1mb'
,
formLimit
:
'1mb'
,
};
config
.
CDN_BASE_URL
=
'https://r.51gjj.com/image/'
;
config
.
CDN_BASE_URL
=
'https://r.51gjj.com/image/'
;
config
.
NODE_URL
=
process
.
env
.
NODE_URL
;
config
.
NODE_URL
=
process
.
env
.
NODE_URL
;
config
.
NODE_BASE_URL
=
process
.
env
.
NODE_BASE_URL
;
config
.
NODE_BASE_URL
=
process
.
env
.
NODE_BASE_URL
;
...
...
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