Doubt Cloud Function

0

Is Cloud Function as a server for NodeJS?

Can I import any NPM package and use its feature, which will work normally in Cloud Functions? Or does it only work with google features?

I tried to make a request in a cep API. But cloud functions did not work, but on the local server it worked.

    
asked by anonymous 01.03.2018 / 13:10

1 answer

0

Yes, the Cloud Functions executes NodeJS code. And you can import any package npm.

But what happens is that in the Spark plan (free) of Firebase, you can only access Google services. If you'd like to use other APIs, you'll need to upgrade to one of paid plans .

    
01.03.2018 / 23:19