Try change index.js to server.js as entry