Next.js 无法在 Azure 中部署。错误函数内容的大小太大

问题描述 投票:0回答:0

无法在 Azure static-web-app 中部署 Next.js SSR 应用程序。我在 yml 文件中添加了所需的配置以限制缓存但仍然出现错误:“函数内容的大小太大。此静态 Web 应用程序的限制为 104857600 字节”

yml 文件:

Pakage.json 文件:

错误:

根据最新更新我也尝试将

module.exports ={ output:"standalone", }
放在next.config.js文件中但仍然出现同样的错误。

azure next.js azure-functions azure-web-app-service azure-static-web-app
© www.soinside.com 2019 - 2024. All rights reserved.