title: 404 Error when deploying React App on custom domain
body: <p>It seems like I followed all the necessary in the documentation but it keeps giving a 404 Error: "There isn't a GitHub pages here" when I go into <a href="https://juliesong.me" rel="noreferrer">https://juliesong.me</a>. 
  I got my custom domain through GoDaddy and configured the DNS like so:
  <img src="https://res.cloudinary.com/dvuwk1oua/image/upload/v1589619719/Screen_Shot_2020-05-16_at_6.00.58_PM_xmj6v0.png" alt=""></p>
  
  <p>Then I changed my <code>package.json</code> file to have</p>
  
  <pre><code>"homepage": "https://www.juliesong.me",
  </code></pre>
  
  <p>Added a CNAME file in the root directory containing
  <code>www.juliesong.me</code></p>
  
  <p>And lastly went into settings in GitHub pages:
  <img src="https://res.cloudinary.com/dvuwk1oua/image/upload/v1589619832/Screen_Shot_2020-05-16_at_6.03.40_PM_nmixs1.png" alt=""> </p>
  
  <p>I searched my issue up and a lot of people said it might have to do with the React Router, so I edited to include a basename:</p>
  
  <pre><code>import React from 'react';
  import ReactDOM from 'react-dom';
  import App from './App';
  import { HashRouter as Router } from "react-router-dom";
  import * as serviceWorker from './serviceWorker';
  
  const routing = (
    &lt;Router basename={process.env.PUBLIC_URL}&gt;
      &lt;App /&gt;
    &lt;/Router&gt;
  );
  
  ReactDOM.render(routing, document.getElementById('root'));
  </code></pre>
  
  <p>This is my App.js:</p>
  
  <pre><code>import React, { Component } from 'react';
  import {Route} from 'react-router-dom';
  import { withRouter } from 'react-router'
  import { GlobalStyles, } from "./util/GlobalStyles";
  
  import Home from './containers/Home'
  
  
  class App extends Component {
  
    render() {
      const home = () =&gt; &lt;Home /&gt;
  
      return (
        &lt;main&gt;
          &lt;GlobalStyles /&gt;
            &lt;React.Fragment&gt;
                &lt;Route exact path="/" component={home} /&gt;
            &lt;/React.Fragment&gt;
        &lt;/main&gt;
      );
    }
  }
  
  export default withRouter(App);
  </code></pre>
  
  <p>If anyone could help on this issue, that would be great:)</p>