如何在 NextJS 中仅导出特定页面?

How can I export only a specific page in NextJS?

我想要在 NextJS 中构建和导出特定页面,我该怎么做?

即因此,我只想在“out”目录中获取特定的 HTML 页面。

发件人:https://nextjs.org/docs/advanced-features/static-html-export

For more advanced scenarios, you can define a parameter called exportPathMap in your next.config.js file to configure exactly which pages will be generated.

https://nextjs.org/docs/api-reference/next.config.js/exportPathMap