You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
但如果我在 next.config.js 中加上 output: 'export' 后,npx run build 报错:
Build error occurred
Error: Page "/api/conversations/[conversationId]/name" is missing "generateStaticParams()" so it cannot be used with "output: export" config.
去掉 app/api 目录后,编译还是报错:
Generating static pages (0/4) [== ]a [Error]: Page with dynamic = "error" couldn't be rendered statically because it used cookies.
能否指导一下这个需求如何实现?谢谢。
The text was updated successfully, but these errors were encountered:
我想要将此应用编译成一个静态的网页,去掉其原有的 api,使用自己的后端 api 替代。
这样前端就无需发送 app_id 和 api_key,这些信息保存在自己的后端服务器,根据后端设置决定是否允许前端请求。
但如果我在 next.config.js 中加上 output: 'export' 后,npx run build 报错:
去掉 app/api 目录后,编译还是报错:
Generating static pages (0/4) [== ]a [Error]: Page with
dynamic = "error"
couldn't be rendered statically because it usedcookies
.能否指导一下这个需求如何实现?谢谢。
The text was updated successfully, but these errors were encountered: