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