这是我正在构建的 nextjs 应用程序的 next.config.js 文件。该网站有一个包含多个组件的页面。文件在这里:https://github.com/CodingLife1024/substainify
Run npx --no-install next export
npx --no-install next export
shell: /usr/bin/bash -e {0}
env:
GITHUB_PAGES: true
⨯
The "next export" command has been removed in favor of "output: export" in next.config.js. Learn more: https://nextjs.org/docs/advanced-features/static-html-export
Error: Process completed with exit code 1.
出现的错误是
Run npx --no-install next export
npx --no-install next export
shell: /usr/bin/bash -e {0}
env:
GITHUB_PAGES: true
⨯
The "next export" command has been removed in favor of "output: export" in next.config.js. Learn more: https://nextjs.org/docs/advanced-features/static-html-export
Error: Process completed with exit code 1.
我尝试手动运行这个
Run npx --no-install next export
这给出了错误:
⨯
The "next export" command has been removed in favor of "output: export" in next.config.js. Learn more: https://nextjs.org/docs/advanced-features/static-html-export
我也尝试卸载并重新安装 npm 和 npx。
将
output: 'export'
添加到您的 next.config.js
next build
将创建静态 html 页面,您不需要运行 next export
,因为它不再存在了