'firebase deploy' Error - Must supply a public directory using "public" in each "hosting" config

nate

I am receiving the error 'Must supply a public directory using "public" in each "hosting" config.' when deploying my firebase app. How do I fix this?

kei

Got the same error and fixed it with adding "public" to firebase.json in the empty "public" attribute.

Your firebase.json should be like this.

"hosting": {
  "public": "public", // <- Added
  "ignore": [
    "firebase.json",
    "**/.*",
    "**/node_modules/**"
  ]
}

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Firebase hosting public folder alias

Adding root folder outside of public to hosting Firebase

Travis with firebase hosting and create-react-app: can't find public directory

Firebase Hosting deploy only to sub directory

Firebase deploy, ignore all files but public folder

Firebase Hosting deploy gives HTTP Error 401

Error: hosting:channel:deploy is not a Firebase command

Laravel storage link keep redirected to /public directory in hosting

Using Firebase Hosting to deploy the angular application

Laravel mail sending error $address must be public

Controller parameterless public constructor error using Unity.WebApi and unity config in the web.config

git not using global config file or public key

using "firebase deploy" to deploy to hosting - how does firebase know if it is deploying to hosting and not cloud functions?

"DataPoint field samples must be public" error when using JUnit 4 Theories in Kotlin

Save file to public directory using Cordova FileTransfer

Firebase hosting deploy error "HTTP Error: 404, Not Found"

Laravel 8 project deploy to shared hosting - security issues and public_html folder

Hosting kml files on public webserver

Why a method must be public?

Public chatroom with radius using Firebase (Suggestions Requested)

Unexpected Error on Google Cloud Build Deploy to Firebase Hosting

Public groovy method must be public, says the compiler

Cannot deploy public api on Cloud Run using Terraform

error: Entities and Pojos must have a usable public constructor - Java

"The public type <<classname>> must be defined in its own file" error in Eclipse

Java compiler error: "public type .. must be defined in its own file"?

How to fix "Entities and Pojos must have a usable public constructor" error?

Fatal error: Access level to .... ::read_children() must be public (as in class ....)

why firebase is not deploying files placed outside public directory?

TOP Ranking

HotTag

Archive