Answers for "mern heroku Error: ENOENT: no such file or directory"

0

mern heroku Error: ENOENT: no such file or directory

if (process.env.NODE_ENV) {
    app.use(express.static(path.resolve(process.cwd(), 'client/build')))
    app.get('*', (req, res) => {
      res.sendFile(path.resolve(process.cwd(), 'client/build/index.html'))
    })
  }
Posted by: Guest on September-13-2020

Code answers related to "mern heroku Error: ENOENT: no such file or directory"

Code answers related to "Javascript"

Browse Popular Code Answers by Language