Skip to content

Commit 40df85e

Browse files
danocjastack
authored andcommitted
Support URLs that end in SemVer ranges (gatsbyjs#3305)
Fixes gatsbyjs#3164.
1 parent 3ad469b commit 40df85e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby/src/commands/develop.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ async function startServer(program) {
176176
// Render an HTML page and serve it.
177177
app.use((req, res, next) => {
178178
const parsedPath = parsePath(req.path)
179-
if (parsedPath.extname === `` || parsedPath.extname.startsWith(`.html`)) {
179+
if (parsedPath.extname === `` || parsedPath.extname.startsWith(`.html`) || parsedPath.path.endsWith(`/`)) {
180180
res.sendFile(directoryPath(`public/index.html`), err => {
181181
if (err) {
182182
res.status(500).end()

0 commit comments

Comments
 (0)