workers-graphql-gateway-example icon indicating copy to clipboard operation
workers-graphql-gateway-example copied to clipboard

Get build and preview working

Open buddhamagnet opened this issue 6 years ago • 0 comments

Had a great call with some Cloudflare people today (@buro9 among others). I'm tech lead on the Content Platform at The Economist, and was pointed at this repo as an example of how to get GraphQL running with a Cloudflare worker. It didn't work for me out of the box so I've made some changes:

  • Build required webpack-cli.
  • Was getting unhandled promise rejections running npm run preview so added some catch statements.
  • Finally got it running by removing the chromium app options setting to opn (running on OSX).

Hope this helps!

buddhamagnet avatar Apr 24 '19 20:04 buddhamagnet