Without this the bot PAT 403s on POST /orgs/{org}/repos, which is
the single most important operation — creating new project repos
inside the workspace's Gitea org.
Made-with: Cursor
12 lines
363 B
TypeScript
12 lines
363 B
TypeScript
import { redirect } from "next/navigation";
|
|
|
|
/** Legacy URL — project work now lives under Tasks (PRD is the first task). */
|
|
export default async function PrdRedirectPage({
|
|
params,
|
|
}: {
|
|
params: Promise<{ workspace: string; projectId: string }>;
|
|
}) {
|
|
const { workspace, projectId } = await params;
|
|
redirect(`/${workspace}/project/${projectId}/tasks`);
|
|
}
|