Open bhr opened 4 years ago
I was reading @george43g 's other article on the subject too and tried to append the proposed func
suffix to the TS files, e.g. on-create.func.ts
. It didn't help though. The function names are still not recognized properly
After applying the fix from #11 and inserting admin.initializeApp(functions.config().firebase);
at the top of index.ts
it seems to be working!
I'm not sure why initializeApp
was needed since I used the conveniences discussed in #10 .
I will bundle code to initialise apps automatically once I update the build config in the repo and also work out why the automatic releases arent working.
I've been trying to use better-firebase-functions following the instructions from medium as well as here.
The issue I'm experiencing is that the ts modules are not exported as unique functions but rather as their folder.
Not sure what I'm doing wrong. Are there any logs I can inspect to see what's going on? Thanks for giving any pointers!
The file structure:
index.ts
Output when running
firebase deploy --only functions
Output when running
firebase serve
: