title: Cant access graphql in production from node/react
body: <p>i just deployed my react+node+graphql app to DigitalOcean, the visuals is there, however its not able to reach my graphql url endpoint /graphql. </p>
  
  <p>The error im getting is:</p>
  
  <blockquote>
    <p>[Network error]: SyntaxError: Unexpected token &lt; in JSON at position 0</p>
  </blockquote>
  
  <p>And this is the code im using.</p>
  
  <p>Server.js</p>
  
  <pre><code>  app.use('/graphql', graphqlHTTP({
      schema: schema,
      graphiql: true
    }))
  
    if (process.env.NODE_ENV === 'production') {
      app.use( express.static(path.join(__dirname, 'build')));
  
      app.get('*', (req, res)=&gt;{
        res.sendFile(path.join(__dirname, 'build', 'index.html'));
      })
    }
  
  const port = app.get('port') || 3002;
    app.listen(port, () =&gt; console.log(`The server is running and listening at http://localhost:${port}`));
  </code></pre>
  
  <p>Index.js // here i inject the url that my client should use</p>
  
  <pre><code>const client = new ApolloClient({
    uri: 'myproductionurl/graphql',
  });
  </code></pre>
  
  <p>Does anyone know why this fails?</p>