MCP Server 2.0 (#452)
* MCP Server 2.0 - Updated application version from 2.23.14 to 2.24.0 in package.json. - MCP Server improved with new features - Migrated functionality from Dev Tools to MCP Server - Improved getMonitoringProvider not to crash application when misconfigured
This commit is contained in:
committed by
GitHub
parent
059408a70a
commit
f3ac595d06
44
apps/dev-tool/app/prds/[filename]/page.tsx
Normal file
44
apps/dev-tool/app/prds/[filename]/page.tsx
Normal file
@@ -0,0 +1,44 @@
|
||||
import { Metadata } from 'next';
|
||||
|
||||
import { notFound } from 'next/navigation';
|
||||
|
||||
import { loadPRDPageData } from '../_lib/server/prd-page.loader';
|
||||
import { PRDDetailView } from './_components/prd-detail-view';
|
||||
|
||||
interface PRDPageProps {
|
||||
params: Promise<{
|
||||
filename: string;
|
||||
}>;
|
||||
}
|
||||
|
||||
export async function generateMetadata({
|
||||
params,
|
||||
}: PRDPageProps): Promise<Metadata> {
|
||||
const { filename } = await params;
|
||||
|
||||
try {
|
||||
const prd = await loadPRDPageData(filename);
|
||||
|
||||
return {
|
||||
title: `${prd.introduction.title} - PRD`,
|
||||
description: prd.introduction.overview,
|
||||
};
|
||||
} catch {
|
||||
return {
|
||||
title: 'PRD Not Found',
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
export default async function PRDPage({ params }: PRDPageProps) {
|
||||
const { filename } = await params;
|
||||
|
||||
try {
|
||||
const prd = await loadPRDPageData(filename);
|
||||
|
||||
return <PRDDetailView filename={filename} prd={prd} />;
|
||||
} catch (error) {
|
||||
console.error('Failed to load PRD:', error);
|
||||
notFound();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user