Commit d35e1579 by Jamos

feat: 🎨

parent 75d1769d
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: liguokang * @Author: liguokang
* @Date: 2021-07-14 20:36:28 * @Date: 2021-07-14 20:36:28
* @LastEditors: liguokang * @LastEditors: liguokang
* @LastEditTime: 2021-07-15 10:52:33 * @LastEditTime: 2021-08-03 13:50:37
* @Description: * @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有 * @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
--> -->
...@@ -15,10 +15,30 @@ npm run dev ...@@ -15,10 +15,30 @@ npm run dev
yarn dev yarn dev
``` ```
## 官方文档 ## 打包
根据公司运维规范,打包目录必须为 dist 目录
```
npm run build
```
## NEXT 官方文档
https://www.nextjs.cn/docs https://www.nextjs.cn/docs
## 注意 ## 注意
模板暂不完整,无法启动 模板下载后将所有配置换成自己工程的
### git 地址更换
```
//使用如下命令更换git地址
git remote set-url origin '你的git工程ssh地址'
//使用如下命令查看是否更换成功
git remote -v
```
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: liguokang * @Author: liguokang
* @Date: 2021-07-14 20:36:28 * @Date: 2021-07-14 20:36:28
* @LastEditors: liguokang * @LastEditors: liguokang
* @LastEditTime: 2021-07-29 16:45:28 * @LastEditTime: 2021-08-03 20:03:51
* @Description: * @Description:
* @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有 * @Copyrigh: ©2021 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -38,7 +38,7 @@ module.exports = withLessExcludeAntd({ ...@@ -38,7 +38,7 @@ module.exports = withLessExcludeAntd({
config.plugins.push( config.plugins.push(
new webpack.DefinePlugin({ new webpack.DefinePlugin({
'process.env': { 'process.env': {
DEPLOY_ENV: JSON.stringify(process.env.DEPLOY_ENV), DEPLOY_ENV: JSON.stringify(process.env.DEPLOY_ENV || 'dev'),
}, },
}), }),
); );
......
{ {
"name": "xiaomai-web-office-ssr", "name": "xiaomai-website-ssr-template",
"version": "0.1.0", "version": "1.1.0",
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",
"build": "next build && next export -o dist && npm run nd", "build": "next build && next export -o dist && npm run nd",
...@@ -65,6 +65,6 @@ ...@@ -65,6 +65,6 @@
}, },
"main": "index.js", "main": "index.js",
"repository": "ssh://git@xmgit.ixm5.cn:10022/liguokang/xiaomai-website-ssr-template.git", "repository": "ssh://git@xmgit.ixm5.cn:10022/liguokang/xiaomai-website-ssr-template.git",
"author": "liguokang <liguokang@xiaomai5.com>", "author": "©2021 杭州杰竞科技有限公司 版权所有",
"license": "MIT" "license": "MIT"
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment