#Next.js
共 3 篇文章
解决 Next.js 报错 Standalone output trace missing file 生产镜像缺失依赖修复
排查 Next.js 开启 output: 'standalone' 打包极简 Docker 镜像后启动报 Error: Cannot find module 或 ENOENT: no such file,分析 NFT 静态依赖追踪遗漏。
解决 Next.js 报错 Cookies can only be modified in a Server Action or Route Handler 修复
排查 Next.js App Router 在服务端组件(RSC)中调用 cookies().set() 报错 Cookies can only be modified in a Server Action or Route Handler,分析 RSC 只读约束。
解决 Next.js 报错 Server Action request body exceeds limit 上传超限修复
排查 Next.js App Router 中调用 Server Action 上传稍大文件报 413 Payload Too Large 或 Body exceeded 1MB limit,分析 serverActions.bodySizeLimit 配置。


