The Project has twice approach
- using pure javascript client - server
- using Apollo graphql library client - server
NodeJs GraphQL server hosted on Heroku
Client serving from Vercel (nextjs)
Bundle pure-server
npm i -g @zeit/ncc
cd server
ncc build pure-server.js
After above commands executed, it is gonna create index.js in build folder which is bundled all dependency for pure-server.js