Deploying react/apollo-server app onto Heroku
问题 What I'm trying to do is deploy react / apollo-server full stack app to heroku. Thus I' trying to serve static client files from express/apollo-server backend, like this: const path = require('path'); const express = require('express'); const app = express(); const cors = require('cors'); const { ApolloServer } = require('apollo-server'); const { schema } = require('./schema'); const { resolvers } = require('./resolvers'); app.use(cors()); app.use(express.static('public')); app.get('*', (req,