This repository has been archived on 2026-06-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
master-ai/vibn-frontend/app/[workspace]/project/[projectId]/(home)/page.tsx

23 lines
762 B
TypeScript

import { redirect } from "next/navigation";
/**
* /[workspace]/project/[projectId]
*
* Bare project URL is a server-side redirect into the default tab
* (Product). The actual landing experience lives under
* `/[workspace]/project/[projectId]/product` with the shared tab
* shell rendered by `(home)/layout.tsx`.
*
* Why redirect rather than render: keeping every tab as its own URL
* means refresh / back / share always lands the user on the right
* surface, and Next.js can prefetch each tab independently.
*/
export default async function ProjectIndexPage({
params,
}: {
params: Promise<{ workspace: string; projectId: string }>;
}) {
const { workspace, projectId } = await params;
redirect(`/${workspace}/project/${projectId}/preview`);
}