【发布时间】:2021-01-13 13:25:12
【问题描述】:
有没有办法通过 cli 命令 (firebase deploy --only functions) 使用这种架构来实现 Firebase/Google 云功能?
预期:
.
└── functions/
├── function_using_axios/
│ ├── node_modules/
│ ├── package.json
│ └── index.js
└── function_using_moment/
├── node_modules/
├── package.json
└── index.js
目前,我的架构如下所示:
.
└── functions/
├── node_modules/
├── package.json
├── index.js
├── function_using_axios.js
└── function_using_moment.js
事实上,对于某些功能,我有很多无用的包依赖项。 并且会增加冷启动时间。
我知道这可以通过 Web UI 实现。
WEB UI 示例:
在 WEB UI 上看到的我当前的 Archi,所有功能的一个包:
有什么想法吗?
谢谢。
【问题讨论】:
标签: firebase architecture google-cloud-functions package cold-start