old_contents: const path = require('path')
  const express = require('express')
  const next = require('next')
  const apiHandler = require('./api')
  
  const dev = process.env.NODE_ENV !== 'production'
  const app = next({
    dev,
    dir: path.resolve(__dirname + '/client'),
  })
  const nextHandler = app.getRequestHandler()
  
  app.prepare().then(() => {
    const server = express()
  
    server.use('/api', apiHandler)
    server.get('*', (req, res) => {
      return nextHandler(req, res)
    })
  
    server.listen(3001, err => {
      if (err) throw err
      console.log('> Ready on http://localhost:3000')
    })
  })
  
new_contents: const path = require('path')
  const express = require('express')
  const next = require('next')
  const apiHandler = require('./api')
  
  const dev = process.env.NODE_ENV !== 'production'
  const app = next({
    dev,
    dir: path.resolve(__dirname + '/client'),
  })
  const nextHandler = app.getRequestHandler()
  
  app.prepare().then(() => {
    const server = express()
  
    server.use('/api', apiHandler)
    server.get('*', (req, res) => {
      return nextHandler(req, res)
    })
  
    server.listen(3001, err => {
      if (err) throw err
      console.log('> Ready on http://localhost:3001')
    })
  })
  
subject: change log