File tree Expand file tree Collapse file tree 3 files changed +20
-16
lines changed Expand file tree Collapse file tree 3 files changed +20
-16
lines changed Original file line number Diff line number Diff line change 1
- # serverless-cnode
1
+ # Serverless Cnode
2
2
3
- A cnodejs client using Next.js deploy to Serverless
3
+ [ 在线预览 ] ( https://cnode.yuga.chat )
4
4
5
- ## Flow
5
+ 使用 Next.js + TypeScript 开发,并且基于 Serverless 部署的 cnode 客户端
6
+
7
+ ## 流程图
6
8
7
9
![ Deploy Flow] ( ./docs/ssr-deploy-flow.png )
8
10
9
- ## Feature
11
+ ## 功能
10
12
11
13
- [x] Typescript
12
14
- [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
17
20
18
- ## Setup
21
+ ## 本地开发
19
22
20
23
``` bash
21
24
$ npm install
22
25
23
26
$ npm run dev
24
27
```
25
28
26
- ## Build
29
+ ## 构建
27
30
28
31
``` bash
29
32
$ npm run build
30
33
```
31
34
32
- ## Deploy
35
+ ## 部署
33
36
34
37
``` bash
35
38
$ npm run deploy
Original file line number Diff line number Diff line change @@ -12,23 +12,23 @@ class About extends Component {
12
12
< ScrollView className = 'about-info' style = { { height : '100vh' } } >
13
13
< dt > 关于项目</ dt >
14
14
< dd >
15
- 该项目是基于 https://cnodejs.org 的api, Next.js 编写的 cnode
16
- 客户端。
15
+ 使用 Next.js + TypeScript 开发,并且基于 Serverless 部署的 cnode
16
+ 客户端
17
17
</ dd >
18
18
< dt > 源码地址</ dt >
19
19
< dd >
20
20
< a href = 'https://github.com/icai/nextjs-cnode' >
21
- https://github.com/icai/nextjs -cnode
21
+ https://github.com/serverless-plus/serverless -cnode
22
22
</ a >
23
23
</ dd >
24
24
< dt > 意见反馈</ dt >
25
25
< dd >
26
- < a href = 'https://github.com/icai/nextjs -cnode/issues' >
26
+ < a href = 'https://github.com/serverless-plus/serverless -cnode/issues' >
27
27
发表意见或者提需求
28
28
</ a >
29
29
</ dd >
30
30
< dt > 当前版本</ dt >
31
- < dd > V1.0 </ dd >
31
+ < dd > V0.0.1 </ dd >
32
32
</ ScrollView >
33
33
</ Layout >
34
34
) ;
Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ class List extends Component<IProps, IState> {
44
44
45
45
constructor ( props ) {
46
46
super ( props ) ;
47
+ console . log ( props ) ;
47
48
this . state = props . state ;
48
49
}
49
50
static getInitialProps ( { query : { tab } } ) {
You can’t perform that action at this time.
0 commit comments