0
votes

I have problem with deploying site to host.

When I complete all steps and enter to the hosted site it says:

enter image description here

My steps:

npm run build and it created build folder

firebase init , select hosting ,

What do you want to use as your public directory? build

Configure as a single-page app (rewrite all urls to /index.html)? Yes

File build/index.html already exists. Overwrite? No

and then finally firebase deploy

1
You've configured Firebase to deploy the build directory, and it seems like that directory does not contain your public web site data. - Frank van Puffelen
As said, make sure build/index.html contains your website's content. Make sure you are deploying to the correct project: (1) if .firebaserc exists in your directory, make sure it contains the correct project name, (2) use the --project <project_name> flag on firebase deploy. - bkend

1 Answers

0
votes

You have to move your files to the build directory before deploying