Fixed model loading and accessing when function is deployed

This commit is contained in:
Alexander Cerutti
2023-07-30 12:48:45 +02:00
parent 4383944136
commit 4ee0166bd2
2 changed files with 24 additions and 2 deletions

View File

@@ -9,7 +9,11 @@
"firebase-debug.log",
"firebase-debug.*.log"
],
"predeploy": ["npm --prefix \"$RESOURCE_DIR\" run build"]
"predeploy": [
"cp -r ../models functions/models",
"npm --prefix \"$RESOURCE_DIR\" run build"
],
"postdeploy": ["rm -rf functions/models"]
}
],
"storage": {