【发布时间】:2020-08-16 18:51:14
【问题描述】:
【问题讨论】:
【问题讨论】:
要在 iis 上运行 node js 应用程序,您需要配置 iisnode 模块。 https://github.com/tjanczuk/iisnode
然后运行以下命令来构建应用程序:
npm run build
在 .next 文件夹中创建生产应用程序。
https://nextjs.org/docs/advanced-features/static-html-export
【讨论】:
getServerSideProps 的页面
将此添加到您的 package.json 脚本中: “产品”:“下一个出口” 并在构建后运行此脚本,然后复制输出文件夹:/out
【讨论】: