From 3309e05b4af351178730231db19c572d102c5983 Mon Sep 17 00:00:00 2001 From: Jake Deichert Date: Wed, 12 Jul 2017 21:25:10 -0400 Subject: [PATCH] Fix reference to program.directory This PR had a small typo https://github.com/gatsbyjs/gatsby/pull/1478 --- packages/gatsby/src/utils/develop.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby/src/utils/develop.js b/packages/gatsby/src/utils/develop.js index 5d82f512e988a..4715874958be6 100644 --- a/packages/gatsby/src/utils/develop.js +++ b/packages/gatsby/src/utils/develop.js @@ -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() }