How to change index.html (firebase hosting) to show project content?

Viewed 234

I'm a react-native beginner and I tried to host my project but ended up with a launched web app showing a firebase welcome screen. This is because of the index.html generated when doing init firebase. The index.html file looks like this:

enter image description here

How do I replace the Index.html with my own front-end code? I have an index.js file; is this somehow related?

Thank you so much for your help!

1 Answers

When you run

firebase init

from within your project folder, then Select

Use an existing project

then select the folder where you own index.html is (typically ./build) and say No to overwrite.

Related