ecomplus / application-starter

Serverless boilerplate for E-Com Plus apps (integrations) with Firebase Cloud Functions and GitHub Actions
MIT License
2 stars 3 forks source link

Each route a function #139

Open leomp12 opened 2 years ago

leomp12 commented 2 years ago

Is your feature request related to a problem? Please describe. Is harder to debug Cloud Functions with all routes ate the same Express server, also it may produce slower starts.

Describe the solution you'd like Each app route should be exported as a different Cloud Function.

Describe alternatives you've considered If using Cloud Run https://github.com/ecomplus/application-starter/issues/138 may be useful to keep a server with all (or almost) routes, in this case just may be better to use https://www.fastify.io/ in place of current Express implementation.

Additional context Also related to https://github.com/ecomplus/application-starter/issues/136