36 lines
714 B
Markdown
36 lines
714 B
Markdown
# next
|
|
|
|
> React 框架,使用服务器端渲染构建优化的 Web 应用程序。
|
|
> 更多信息:<https://nextjs.org/docs>。
|
|
|
|
- 在开发模式下启动当前应用程序:
|
|
|
|
`next dev`
|
|
|
|
- 启动当前应用程序并监听特定端口:
|
|
|
|
`next dev --port {{port}}`
|
|
|
|
- 构建针对生产环境优化的当前应用程序:
|
|
|
|
`next build`
|
|
|
|
- 在生产模式下启动已编译的应用程序:
|
|
|
|
`next start`
|
|
|
|
- 启动已编译的应用程序并监听特定端口:
|
|
|
|
`next start --port {{port}}`
|
|
|
|
- 将当前应用程序导出为静态 HTML 页面:
|
|
|
|
`next export`
|
|
|
|
- 显示 Next.js 的遥测状态:
|
|
|
|
`next telemetry`
|
|
|
|
- 显示子命令的帮助信息:
|
|
|
|
`next {{build|dev|export|start|telemetry}} --help` |