- 'use server';
- import { redirect } from 'next/navigation';
- import { isAuthenticated } from '@/lib/api/auth';
- import View from './view';
- export default async function Page()
- {
- // 로그인 여부 확인
- if (await isAuthenticated()) {
- redirect('/');
- }
- return <View />;
- }
|