Files
vibn-agent-runner/vibn-frontend/app/[workspace]/page.tsx

17 lines
508 B
TypeScript

import { redirect } from "next/navigation";
/**
* Workspace root (`/{workspace}`). There's no standalone dashboard here — the
* workspace landing is the projects list. Onboarding and the post-auth flow
* both send users to `/{slug}`, so this redirect is what makes that land
* somewhere real instead of a 404.
*/
export default async function WorkspaceIndex({
params,
}: {
params: Promise<{ workspace: string }>;
}) {
const { workspace } = await params;
redirect(`/${workspace}/projects`);
}