Skip to content

Commit

Permalink
feat: pass pathname to replaceRenderer and onPreRenderHTML SSR APIs (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jafaircl authored and pieh committed Nov 7, 2018
1 parent e2fdb87 commit f032ceb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/gatsby/cache-dir/static-entry.js
Expand Up @@ -180,6 +180,8 @@ export default (pagePath, callback) => {
setPreBodyComponents,
setPostBodyComponents,
setBodyProps,
pathname: pagePath,
pathPrefix: __PATH_PREFIX__,
})

// If no one stepped up, we'll handle it.
Expand Down Expand Up @@ -366,6 +368,8 @@ export default (pagePath, callback) => {
replacePreBodyComponents,
getPostBodyComponents,
replacePostBodyComponents,
pathname: pagePath,
pathPrefix: __PATH_PREFIX__,
})

const html = `<!DOCTYPE html>${renderToStaticMarkup(
Expand Down

0 comments on commit f032ceb

Please sign in to comment.