Skip to content

Commit

Permalink
ルートでサインインされていない場合、/homeにリダイレクトするようにした
Browse files Browse the repository at this point in the history
  • Loading branch information
yuto-trd committed Oct 27, 2024
1 parent d521dcc commit 1052c64
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions task_yell/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export default function Home() {
auth.authStateReady().then(() => {
if (!auth.currentUser) {
router.push("/signin");
} else {
router.push("/home");
}
});
}, [router]);
Expand Down

0 comments on commit 1052c64

Please sign in to comment.