mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
* Update `packages/` * Update examples * Update tests * Update bench * Update top level files * Fix build * trigger
9 lines
212 B
JavaScript
9 lines
212 B
JavaScript
import { withRouter } from 'next/router'
|
|
|
|
function RouterMethodSSR({ router }) {
|
|
if (typeof window === 'undefined') router.push('/a')
|
|
return <p>Navigating...</p>
|
|
}
|
|
|
|
export default withRouter(RouterMethodSSR)
|