Gatsby: [1.0] Replace Hapi for serving files

Created on 31 May 2017  路  4Comments  路  Source: gatsbyjs/gatsby

All 4 comments

I would like to raise awareness of the several security vulnerabilities present in hapi: https://snyk.io/test/github/gatsbyjs/gatsby/master%2Fpackages%2Fgatsby

I think it would be a good idea to replace it with koa or fastify until an adequate static file server is found.

Thanks for the heads up. It shouldn't really be a problem because the serving is purely for development but I think it's still good to swap it out. I've already got a branch that uses zeits serve package but needs the Cli changes to be merged first

It'd be cool to serve the site using http/2 if possible. Dunno if that's easy or if the serve package handles that already.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

KyleAMathews picture KyleAMathews  路  3Comments

rossPatton picture rossPatton  路  3Comments

3CordGuy picture 3CordGuy  路  3Comments

ferMartz picture ferMartz  路  3Comments

signalwerk picture signalwerk  路  3Comments