https://nextjs.frontendx.cn/docs/#%E5%AE%89%E8%A3%85
安装
npm install --save next react react-dom
将下面脚本添加到 package.json 中:
{"scripts": {"dev": "next","build": "next build","start": "next start"}}
npm run dev运行项目,运行到别的端口npm run dev -- -p 3001npm run build打包npm run start在服务器运行
路由
每个.js 文件将变成一个路由,自动处理和渲染。
