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() }