import { redirect } from "next/navigation"; /** * App root: send authenticated users to the default workspace. * Unauthenticated visitors never reach this page — the middleware bounces * them to /login?next=/ first. * * `/w/default` is resolved to the user's first workspace (id order — the * personal workspace is created first at registration) by the * `[workspace]` page, which also serves the middleware's `/w/default` * redirect target. No workspace literally has the id/slug "default". */ export default function RootPage() { redirect("/w/default"); }