Skip to content

Commit

Permalink
Fix reference to program.directory (#1490)
Browse files Browse the repository at this point in the history
This PR had a small typo #1478
  • Loading branch information
jacobdeichert authored and KyleAMathews committed Jul 13, 2017
1 parent d1b72df commit c532dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/src/utils/develop.js
Expand Up @@ -88,7 +88,7 @@ async function startServer(program) {
app.use((req, res, next) => {
const parsedPath = parsePath(req.originalUrl)
if (parsedPath.extname === `` || parsedPath.extname === `.html`) {
res.sendFile(`${program.directory()}/public/index.html`, err => {
res.sendFile(`${program.directory}/public/index.html`, err => {
if (err) {
res.status(500).end()
}
Expand Down

0 comments on commit c532dce

Please sign in to comment.