Repository directory is visible in web console once the Github pages deployed

After deploying the react apps to github pages, in the web console, whole repository is visble even the file content is available there. So if i had sensitive data on App then it’s visible to user. Is there a way to avoid that. it seems problem to me. Any suggestion.

here is image of web console.

There are ways to configure what content is published to your GitHub Pages site, but in general all content in whatever source you use is made available via your GitHub Pages site, yes.

I hope that helps!