Mixtini/cocktails-guide-book

Migrate cloud function to local data JSON due to cost

sean1093 opened this issue · 0 comments

Migrate cloud function to local data JSON

Problem

Google firebase cloud function will not support the Node.js v8 runtime environment soon. If we migrate to the Node.js v10, need to change our project to "Pay as you go"(Blaze plan).

Screen Shot 2020-07-19 at 3 31 18 PM

For the cost concern, we are not planning to maintain a free service with cost.

Workaround

Since we are not too much data in our database, we can put database JSON in our code base. Use Github as the static file server.

Reference