Complete the code to deploy a Firebase function named 'helloWorld'.
exports.helloWorld = functions.[1]((req, res) => { res.send('Hello from Firebase!'); });
The correct method to deploy an HTTP function in Firebase is https.onRequest.
Complete the command to deploy all Firebase functions.
firebase [1] --only functionsThe firebase deploy command uploads and deploys your functions to Firebase.
Fix the error in the function trigger type to deploy an HTTP function.
exports.myFunction = functions.[1]((req, res) => { res.send('Done'); });
HTTP functions require the https.onRequest trigger.
Fill both blanks to deploy only the 'auth' and 'firestore' Firebase emulators.
firebase emulators:start --only [1],[2]
The auth and firestore emulators are started by specifying them with --only.
Fill all three blanks to initialize Firebase functions with TypeScript and ESLint.
firebase init functions ? What language would you like to use to write Cloud Functions? [1] ? Do you want to use ESLint to catch probable bugs and enforce style? [2] ? Do you want to install dependencies with npm now? [3]
Choose TypeScript for language, Yes to use ESLint, and Yes to install dependencies immediately.
