Skip to content

Commit 2d08680

Browse files
committed
Don't use an index for express.static.
1 parent 31d3359 commit 2d08680

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lessons/14-whats-next/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var app = express()
1111
app.use(compression())
1212

1313
// serve our static stuff like index.css
14-
app.use(express.static(path.join(__dirname, 'public')))
14+
app.use(express.static(path.join(__dirname, 'public'), {index: false}))
1515

1616
// send all requests to index.html so browserHistory works
1717
app.get('*', (req, res) => {

0 commit comments

Comments
 (0)