Skip to content

Commit

Permalink
set redirect to false for serve-static
Browse files Browse the repository at this point in the history
  • Loading branch information
txchen committed Oct 19, 2018
1 parent 3f475fb commit 1504422
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ LightServer.prototype.start = function () {
if (_this.options.serve) {
app.use(
_this.options.servePrefix || '',
serveStatic(_this.options.serve, { extensions: ['html'] })
serveStatic(_this.options.serve, { extensions: ['html'], redirect: false })
)
app.use(
_this.options.servePrefix || '',
serveIndex(_this.options.serve, { 'icons': true })
serveIndex(_this.options.serve, { icons: true })
)
}

Expand Down

0 comments on commit 1504422

Please sign in to comment.