connect.static (not .staticProvider) in /examples/debug/server.js
bensheldon opened this issue · comments
Ben Sheldon [he/him] commented
Line 22-24 of /examples/debug/server.js is:
var server = connect.createServer(
connect.staticProvider(__dirname + '/static')
);
...but should be...
var server = connect.createServer(
connect.static(__dirname + '/static')
);
Sorry for the minor bugfix, but it throws an error and seems like a common-ish issue.
Aaron Blohowiak commented
this was only in the examples/debug/server.js
, so I added the connect 0.1.0 devDependency which will pull in the version of connect that used staticProvider instead of static.