Skip to content

Commit 03e3aff

Browse files
committed
fix: update introduction
1 parent 35a63a1 commit 03e3aff

File tree

3 files changed

+20
-16
lines changed

3 files changed

+20
-16
lines changed

README.md

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,38 @@
1-
# serverless-cnode
1+
# Serverless Cnode
22

3-
A cnodejs client using Next.js deploy to Serverless
3+
[在线预览](https://cnode.yuga.chat)
44

5-
## Flow
5+
使用 Next.js + TypeScript 开发,并且基于 Serverless 部署的 cnode 客户端
6+
7+
## 流程图
68

79
![Deploy Flow](./docs/ssr-deploy-flow.png)
810

9-
## Feature
11+
## 功能
1012

1113
- [x] Typescript
1214
- [x] Next.js
13-
- [x] Express Server
14-
- [x] LRU Cache
15-
- [x] Static CDN Deployment
16-
- [x] Serverless Framework, using Next.js component
15+
- [x] Express 自定义服务
16+
- [x] LRU 渲染缓存
17+
- [x] 基于 Next.js 的 Serverless 组件部署
18+
- [x] 静态资源分离,自动部署到 COS
19+
- [x] 自动为静态 COS 配置 CDN
1720

18-
## Setup
21+
## 本地开发
1922

2023
```bash
2124
$ npm install
2225

2326
$ npm run dev
2427
```
2528

26-
## Build
29+
## 构建
2730

2831
```bash
2932
$ npm run build
3033
```
3134

32-
## Deploy
35+
## 部署
3336

3437
```bash
3538
$ npm run deploy

pages/about/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,23 @@ class About extends Component {
1212
<ScrollView className='about-info' style={{ height: '100vh' }}>
1313
<dt>关于项目</dt>
1414
<dd>
15-
该项目是基于 https://cnodejs.org 的api,Next.js 编写的 cnode
16-
客户端
15+
使用 Next.js + TypeScript 开发,并且基于 Serverless 部署的 cnode
16+
客户端
1717
</dd>
1818
<dt>源码地址</dt>
1919
<dd>
2020
<a href='https://github.com/icai/nextjs-cnode'>
21-
https://github.com/icai/nextjs-cnode
21+
https://github.com/serverless-plus/serverless-cnode
2222
</a>
2323
</dd>
2424
<dt>意见反馈</dt>
2525
<dd>
26-
<a href='https://github.com/icai/nextjs-cnode/issues'>
26+
<a href='https://github.com/serverless-plus/serverless-cnode/issues'>
2727
发表意见或者提需求
2828
</a>
2929
</dd>
3030
<dt>当前版本</dt>
31-
<dd>V1.0</dd>
31+
<dd>V0.0.1</dd>
3232
</ScrollView>
3333
</Layout>
3434
);

pages/index/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ class List extends Component<IProps, IState> {
4444

4545
constructor(props) {
4646
super(props);
47+
console.log(props);
4748
this.state = props.state;
4849
}
4950
static getInitialProps({ query: { tab } }) {

0 commit comments

Comments
 (0)