How to deploy multiple directories to firebase hosting? The deployment of multiple directories to firebase hosting fails.
In my firebase.json I define two directories: "public": ["public", "config/gcp_tst"]
In the emulator the deployment is OK but the deployment to my firebase project fails.
firebase emulators:start --only hosting:gcp_tst
is OK
firebase deploy --debug --only hosting:gcp_tst
fails with error
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an instance of Array
at new NodeError (node:internal/errors:372:5)
at validateString (node:internal/validators:120:11)
at Object.resolve(node:path:1098:7)
at resolveProjectPath (/usr/local/lib/node_modules/firebase-tools/lib/projectPath.js:14:17)
at validateDeploy (/usr/local/lib/node_modules/firebase-tools/lib/deploy/hosting/validate.js:23:92)
at prepare (/usr/local/lib/node_modules/firebase-tools/lib/deploy/hosting/prepare.js:31:39)
at processTicksAndRejections(node:internal/process/task_queues:96:5)
at async chain (/usr/local/lib/node_modules/firebase-tools/lib/deploy/index.js:32:9)
at async deploy (/usr/local/lib/node_modules/firebase-tools/lib/deploy/index.js:67:5)
my firebase.json
{
"hosting": [
{
"target": "gcp_tst",
"public": ["public", "config/gcp_tst"],
"ignorance": [
"firebase.json",
"**/.*",
"**/node_modules/**"
]
}
]
}