Skip to content

Commit

Permalink
Merge pull request #3 from dulcetti/feature/change-consts-new-version…
Browse files Browse the repository at this point in the history
…-gatsby

Update Gatsby SSR and Gatsby Browser APIs
  • Loading branch information
chungryan committed Jan 22, 2019
2 parents 343729c + 5effd33 commit e0192aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gatsby-plugin-asset-path",
"version": "0.1.1",
"version": "0.2.1",
"description": "Gatsby plugin that moves JS and CSS files and static folder to a custom folder",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ import createHistory from "history/createBrowserHistory"
* Removes prefix from paths once links are clicked on by removing the basename
* @see {@link https://github.com/gatsbyjs/gatsby/blob/v2.0.0-alpha.20/packages/gatsby/cache-dir/history.js#L10}
*/
export const replaceHistory = () => createHistory()
export const replaceComponentRenderer = () => createHistory()
2 changes: 1 addition & 1 deletion src/gatsby-ssr.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ import { StaticRouter } from "react-router-dom"
* @see {@link https://next.gatsbyjs.org/docs/ssr-apis/#replaceStaticRouterComponent}
* @see {@link https://github.com/gatsbyjs/gatsby/blob/v2.0.0-alpha.20/packages/gatsby/cache-dir/static-entry.js#L114}
*/
export const replaceStaticRouterComponent = () => {
export const replaceRenderer = () => {
return ({ basename, ...props }) => <StaticRouter {...props} />
}

0 comments on commit e0192aa

Please sign in to comment.