Skip to content

Commit

Permalink
[develop] Use req.path to check for public files
Browse files Browse the repository at this point in the history
Missed this one in last PR.

Fix for #1655
  • Loading branch information
alampros committed Nov 21, 2017
1 parent 6780cac commit 3a6a742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/src/commands/develop.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ async function startServer(program) {

// Render an HTML page and serve it.
app.use((req, res, next) => {
const parsedPath = parsePath(req.originalUrl)
const parsedPath = parsePath(req.path)
if (parsedPath.extname === `` || parsedPath.extname.startsWith(`.html`)) {
res.sendFile(directoryPath(`public/index.html`), err => {
if (err) {
Expand Down

0 comments on commit 3a6a742

Please sign in to comment.