Fix options not being passed to npm-http-server
`npm-http-server` expects options as a hash, but they were being passed as arguments. This did not affect npmcdn.com because the defaults were being used anyway, but I ran into it when setting it up internally at my company. #TrolledByMJ again
This commit is contained in:
parent
28a96bbb66
commit
babea5e02c
|
@ -10,10 +10,10 @@ const app = express()
|
||||||
app.disable('x-powered-by')
|
app.disable('x-powered-by')
|
||||||
app.use(cors())
|
app.use(cors())
|
||||||
app.use(express.static('public', { maxAge: 60000 }))
|
app.use(express.static('public', { maxAge: 60000 }))
|
||||||
app.use(createRequestHandler(
|
app.use(createRequestHandler({
|
||||||
registryURL,
|
registryURL: registryURL,
|
||||||
bowerBundle
|
bowerBundle: bowerBundle
|
||||||
))
|
}))
|
||||||
|
|
||||||
app.listen(port, function () {
|
app.listen(port, function () {
|
||||||
console.log('Server started on port %s, Ctrl+C to quit', port)
|
console.log('Server started on port %s, Ctrl+C to quit', port)
|
||||||
|
|
Loading…
Reference in New Issue