Home > Blockchain >  What is the purpose of the functions/lib folder in a Firebase project
What is the purpose of the functions/lib folder in a Firebase project

Time:12-06

When I use the Firebase CLI to initialise a functions folder in a Firebase project and then deploy the project, a lib folder appears within functions. What is the purpose of the lib folder?

CodePudding user response:

It's your compiled code.

Functions to run code use their version of code/language so compiler compile code to a lib folder and compiling code on your computer can throw an error if something is wrong so it prevents from some code failures on server side.

  • Related