-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: unify config in quickstart #1094
Conversation
@dead-horse, thanks for your PR! By analyzing the history of the files in this pull request, we identified @pmq20, @atian25 and @missjing to be potential reviewers. |
反了吧,应该统一改为 module.exports 的方式,这个才是大多数情况下会使用的格式。 |
quickstart 没有用到 appInfo,大部分情况也不会用到 appInfo,不要在这里引入 module.exports 形式的了,啰嗦还要解释什么是 appInfo |
quickstart 给出最简化的用法 |
之前最早就都是 exports 的,后面太多这方面的反馈了,不胜其烦,才改成 module 的。 想的是:看得懂的,看两个都一样;看不懂的,用插件的时候复制错了,就跑过来吐槽,烦。 |
既然都看不懂,就写简单的,再来问直接锁 issue |
Codecov Report
@@ Coverage Diff @@
## master #1094 +/- ##
======================================
Coverage 99.7% 99.7%
======================================
Files 29 29
Lines 676 676
======================================
Hits 674 674
Misses 2 2 Continue to review full report at Codecov.
|
docs/source/en/intro/quickstart.md
Outdated
}, | ||
} | ||
return config; | ||
exports.keys = '<YOUR_SECURITY_COOKE_KEYS>'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个地方是故意不引起来的。
docs/source/en/intro/quickstart.md
Outdated
@@ -307,7 +301,7 @@ module.exports = app => { | |||
And also add config. | |||
|
|||
```js | |||
// config/config.default.js | |||
// add news' configurations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
路径保留下?
把脚手架改了吧 |
Checklist
npm test
passesAffected core subsystem(s)
Description of change
closes #1073