Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
fix(routing): use IS_SSR instead of BABEL_ENV in createHistory
Browse files Browse the repository at this point in the history
  • Loading branch information
Metnew committed Jul 13, 2017
1 parent 07d1896 commit f41d258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/routing/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const Routing = authCheck => {

function getHistory () {
const basename = ''
if (process.env.BABEL_ENV === 'ssr') {
if (process.env.IS_SSR) {
return createMemoryHistory()
}
return createBrowserHistory({basename})
Expand Down

0 comments on commit f41d258

Please sign in to comment.