sarsamurmu / reboost

A super fast dev server for rapid web development
MIT License
61 stars 3 forks source link

contentServer.br: boolean (koa-static) mismatch type declaration #11

Closed GHNewbiee closed 4 years ago

GHNewbiee commented 4 years ago

Based on the documentation which refers that

... It supports all the options of koa-static and some extra options...

contentServer.br: true gives an error. See photo below.

reboost-2

sarsamurmu commented 4 years ago

koa-static internally uses koa-send to serve files. So all options mainly come from the koa-send package. If you see the options of koa-send, it has an option named brotli but in koa-static it is mistakenly stated as br. So please use brotli option instead of br. Anyway, thanks for reporting bugs :D