Skip to content

Update Quick-Start.md #3

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

Open
wants to merge 1 commit into
base: docs
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion docs/Quick-Start.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ touch index.js .env # 创建index.js 以及 .env(环境配置文件)
```js
const discuss = require('discuss')

// 选择以什么方式运行
// 选择以什么方式运行,index.js应该只包含启动的const discuss行和下面的其中一行
discuss.server() // 服务器使用 (Server)

discuss.main() // 无服务器使用 (ServerLess)
Expand Down Expand Up @@ -164,6 +164,8 @@ D_MONGO_SSL=
<!-- <script src="https://cdn.jsdelivr.net/npm/discuss@latest/dist/discuss.js"></script> -->
<!-- 建议你使用指定版本的js,而不是上方的最新版本,因为后续如果js有更新的话,可能会出现问题 -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/discuss.js"></script>
<!-- cdn.jsdelivr.net的网络对于其他省份的客户很不友好,比如会超时 -->
<!--您可以通过修改src地址为:http://服务器地址/discuss.js以直接调用服务器的discuss.js,记得上cdn以免被打废 -->
...
</head>
<body>
Expand Down