title: Why does react-router not works at vercel?
body: <p>I am trying to publish a serverless web to vercel.
  I want to use react-router and this works good on my computer but when I deploy it It doesn't works
  Can somebody help me?</p>
  <p>(I want to do it without server)</p>
  <pre class="lang-js prettyprint-override"><code>// My main code
  import React from 'react'
  import { BrowserRouter, Switch, Route } from 'react-router-dom'
  
  import Main from './routes/Main'
  import Tos from './routes/Tos'
  import Privacy from './routes/Privacy'
  import NotFound from './routes/NotFound'
  import Recruit from './routes/Recruit'
  
  const App = () =&gt; {
      return (
          &lt;BrowserRouter&gt;
              &lt;Switch&gt;
                  &lt;Route exact path = '/' component = {Main} /&gt;
                  &lt;Route exact path = '/recruit' component = {Recruit} /&gt;
                  &lt;Route exact path = '/tos' component = {Tos} /&gt;
                  &lt;Route exact path = '/privacy' component = {Privacy} /&gt;
                  &lt;Route component = {NotFound} /&gt;
              &lt;/Switch&gt;
          &lt;/BrowserRouter&gt;
      )
  }
  
  export default App
  </code></pre>
  <p><a href="https://i.stack.imgur.com/scQ98.png" rel="noreferrer"><img src="https://i.stack.imgur.com/scQ98.png" alt="Result" /></a></p>