Is there a way to have a Firebase/Google cloud function with this kind of architecture with cli command (firebase deploy --only functions
) ?
Expected:
.
└── functions/
├── function_using_axios/
│ ├── node_modules/
│ ├── package.json
│ └── index.js
└── function_using_moment/
├── node_modules/
├── package.json
└── index.js
Currently, my archi look like this:
.
└── functions/
├── node_modules/
├── package.json
├── index.js
├── function_using_axios.js
└── function_using_moment.js
The fact is, i have a lot of useless packages dependencies for some functions. And it increase cold start time.
I know this is possible with the web UI.
WEB UI Exemple:
My Current Archi see on WEB UI, one Package for all functions:
Any idea ?
Thanks.