Skip to content
Dashboard

Next.js 6.1

Software Engineer

Link to headingImproved hot reloading reliability

Link to headingHot reloading Typescript and other custom extensions

Link to headingCodebase improvements

The pre-rendering files are now in the `server` directory.
The pre-rendering files are now in the `server` directory.

Link to headingNext.js codemods

// old
class Page extends React.Component {
render() {
const {url} = this.props
return <div>{url.pathname}</div>
}
}
export default Page

How the pathname was accessed in versions before Next.js 6 using `url`.

// new
import { withRouter } from 'next/router'
class Page extends React.Component {
render() {
const {router} = this.props
return <div>{router.pathname}</div>
}
}
export default withRouter(Page)

How the pathname should be accessed in versions after Next.js 6 using `router` injected by `withRouter`.

jscodeshift -t ./url-to-withrouter.js pages/**/*.js

This will transform uses of `url` to `withRouter`.

Link to headingContributing to Next.js

There's 30 open issues with the "good first issue" label. Giving new contributors the opportunity to contribute.
There's 30 open issues with the "good first issue" label. Giving new contributors the opportunity to contribute.

Link to headingnextjs.org open source

Link to headingFuture

Link to headingWebpack 4

Link to headingServerless Next.js