【发布时间】:2021-10-25 08:28:50
【问题描述】:
所以我从here 中得到了next build && next export 和next build && next start 之间的区别。
简而言之,next build && next export 生成一个完全静态的应用程序,它不需要服务器来托管,而 next build && next start 则启动一个呈现和提供内容的服务器。
那么我的问题是,next build && next export 与仅使用 React 有何不同?似乎这两种方法都会生成静态文件(html、css、js)。如果我想优化 SEO,next export 比使用 react 更好吗?
【问题讨论】:
标签: reactjs next.js seo single-page-application