14 lines
532 B
TypeScript
14 lines
532 B
TypeScript
|
|
import { redirect } from 'next/navigation';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Root `/` has no UI of its own — every authenticated surface lives under
|
||
|
|
* a port slug. Forward to `/dashboard`, which resolves the user's default
|
||
|
|
* port and redirects again to `/<portSlug>/dashboard`. Without this, a
|
||
|
|
* post-login redirect of `redirect=/` (set by middleware when the user
|
||
|
|
* originally hit `/`) lands on an empty 404.
|
||
|
|
*/
|
||
|
|
export default function RootPage() {
|
||
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||
|
|
redirect('/dashboard' as any);
|
||
|
|
}
|