简体   繁体   English

Google App Engine 部署文件太大

[英]Google App Engine Deploying files is too big

I'm using GCP app Engine to my node api project.我正在将 GCP 应用引擎用于我的节点 api 项目。

When I deploy it, file size was usually 2MB, but it is 661MB now.当我部署它时,文件大小通常是 2MB,但现在是 661MB。

I think the previous version didn't include node_modules folder size.我认为以前的版本不包括 node_modules 文件夹大小。

But it included node_modules size now.....但它现在包括 node_modules 大小.....

How can I change back?我怎样才能变回来?

This is the image for my instance version.这是我的实例版本的图像。 https://i.stack.imgur.com/HIVOw.png https://i.stack.imgur.com/HIVOw.png

Google didn't assume node files for the deployed version. Google 没有为已部署版本假定节点文件。
therefore my deployed version size is usually small size such as 2MB.因此我部署的版本大小通常很小,例如 2MB。

But they changed the policy, so in deployed version, file size includes all of the module files.但是他们改变了策略,所以在部署版本中,文件大小包括所有模块文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM