fix: router called at non-client

This commit is contained in:
wonderlandpark 2021-05-05 19:51:43 +09:00
parent 27750207a2
commit 8a546f8078
No known key found for this signature in database
GPG Key ID: E3E650B146478C64

View File

@ -1,9 +1,12 @@
import { NextPage } from 'next'
import { useRouter } from 'next/router'
import { useEffect } from 'react'
const Developers: NextPage = () => {
const router = useRouter()
router.push('/developers/applications')
useEffect(() => {
router.push('/developers/applications')
})
return <></>
}