如何在next.js中导出build文件夹中的html文件

tez616oj  于 2023-06-22  发布在  其他
关注(0)|答案(1)|浏览(383)

如何在next.js中导出build文件夹中的html文件?我有出口,但它给了我。js扩展名文件,我需要。html文件

bejyjqdl

bejyjqdl1#

Next.js默认支持静态导出。
next.config.js中将output称为export。然后运行next build命令。

参考

https://nextjs.org/docs/pages/building-your-application/deploying/static-exports

相关问题