Skip to content

Commit

Permalink
feat : add pages/index.js (#85)
Browse files Browse the repository at this point in the history
첫 페이지 redirection
  • Loading branch information
JungYeonHwi committed Nov 2, 2023
1 parent 86148f4 commit 643beca
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions pages/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { useEffect } from 'react';
import { useRouter } from 'next/router';

function HomePage() {
const router = useRouter();

useEffect(() => {
// 페이지 로딩 시 /who 경로로 리다이렉션합니다.
router.push('/who');
}, []);

return null; // 이 페이지에서 아무 내용도 렌더링하지 않습니다.
}

export default HomePage;

0 comments on commit 643beca

Please sign in to comment.