Skip to content

Commit

Permalink
fix(gatsby): handle SSR index page in develop (#33483)
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh authored Oct 11, 2021
1 parent ad5e09b commit 87bd10a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/gatsby/src/utils/start-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ export async function startServer(
const { props } = await serverDataPromise

pageData.result.serverData = props
pageData.path = `/${requestedPagePath}`
pageData.path = page.matchPath ? `/${potentialPagePath}` : page.path
}

res.status(200).send(pageData)
Expand Down

0 comments on commit 87bd10a

Please sign in to comment.