Fast create an server-side-render app contains both serverless ssr and egg-react-ssr realized by dclone
可创建 Serverless-Side-Render 应用 或者 传统的 Node.js Server-Side-Render 应用 即 egg-react-ssr
const templateMap: TemplateMap = {
'spa': 'https://github.com/ykfe/ssr/tree/dev/example/midway-react-ssr',
'serverless-react-ssr': 'https://github.com/ykfe/ssr/tree/dev/example/midway-react-ssr',
'serverless-vue-ssr': 'https://github.com/ykfe/ssr/tree/dev/example/midway-vue-ssr',
'midway-react-ssr': 'https://github.com/ykfe/ssr/tree/dev/example/midway-react-ssr',
'midway-vue-ssr': 'https://github.com/ykfe/ssr/tree/dev/example/midway-vue-ssr',
'midway-vue3-ssr': 'https://github.com/ykfe/ssr/tree/dev/example/midway-vue3-ssr',
'nestjs-react-ssr': 'https://github.com/ykfe/ssr/tree/dev/example/nestjs-react-ssr',
'nestjs-vue-ssr': 'https://github.com/ykfe/ssr/tree/dev/example/nestjs-vue-ssr',
'nestjs-vue3-ssr': 'https://github.com/ykfe/ssr/tree/dev/example/nestjs-vue3-ssr',
'ssr-with-js': 'https://github.com/ykfe/egg-react-ssr/tree/dev/example/ssr-with-js',
'ssr-with-ts': 'https://github.com/ykfe/egg-react-ssr/tree/dev/example/ssr-with-ts',
'ssr-with-antd': 'https://github.com/ykfe/egg-react-ssr/tree/dev/example/ssr-with-antd',
'ssr-with-dva': 'https://github.com/ykfe/egg-react-ssr/tree/dev/example/ssr-with-dva'
}
$ npm init ssr-app my-ssr-project --template=serverless-react-ssr
$ npm init ssr-app my-ssr-project -- --template=midway-react-ssr # when Node.js >= 15
$ cd my-ssr-project
$ npm install
$ npm start
$ npm version patch|minor|major
$ git push origin master # github ci will publish package on NPM automatically