File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export default class Error extends React.Component {
3131 }
3232}
3333
34- if ( process . env . NODE_ENV === 'development ') {
34+ if ( process . env . NODE_ENV !== 'production ') {
3535 Error . propTypes = {
3636 statusCode : PropTypes . number
3737 }
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ export default class Router {
7878 }
7979
8080 const { url, as, options } = e . state
81- if ( process . env . NODE_ENV === 'development ') {
81+ if ( process . env . NODE_ENV !== 'production ') {
8282 if ( typeof url === 'undefined' || typeof as === 'undefined' ) {
8383 console . warn ( '`popstate` event triggered but `event.state` did not have `url` or `as` https://err.sh/zeit/next.js/popstate-state-empty' )
8484 }
You can’t perform that action at this time.
0 commit comments