From 0dc4c88cf02af4750051060416a158138d301b3f Mon Sep 17 00:00:00 2001 From: Ijemma Onwuzulike Date: Thu, 29 Feb 2024 20:40:07 -0500 Subject: [PATCH] Add `functions` entry in `firebase.json` --- firebase.json | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/firebase.json b/firebase.json index 03829c71..4caf18e7 100644 --- a/firebase.json +++ b/firebase.json @@ -3,6 +3,20 @@ "rules": "firestore.rules", "indexes": "firestore.indexes.json" }, + "functions": [ + { + "source": "functions", + "ignore": [ + "node_modules", + ".git", + "firebase-debug.log", + "firebase-debug.*.log" + ], + "predeploy": [ + "npm --prefix \"$RESOURCE_DIR\" run build" + ] + } + ], "hosting": { "public": "public", "ignore": ["firebase.json", "**/.*", "**/node_modules/**"],