'I deploy firebase but I can not show my live web site. I shows "Welcome Firebase Hosting Setup Complete" when deployed to firebase hosting
The cause of the problem:
When we run the hosting commands, forget! What do you want to use as your public directory? y throw it away.
Step 1: First of all build folder , .firebase , .firebaserc , firebase.json Delete it.
Step 2:
*firebase init Give this command. Give the following steps correctly 1.What do you want to use as your public directory? build
2.Configure as a single-page app (rewrite all urls to /index.html)? Yes
3.Set up automatic builds and deploys with GitHub? No
4.File build/index.html already exists. Overwrite? Yes
5.npm run build
6.firebase deploy
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
