@@ -29,11 +29,13 @@ function timeAgo(iso?: string | null) {
|
||||
export default async function BuildBreakdownPage({
|
||||
params,
|
||||
}: {
|
||||
params: { buildId: string };
|
||||
params: Promise<{ buildId: string }>;
|
||||
}) {
|
||||
const { buildId } = await params;
|
||||
|
||||
// Public detail endpoint - use Next.js API route
|
||||
const baseUrl = process.env.NEXT_PUBLIC_APP_URL || 'http://localhost:3000';
|
||||
const res = await fetch(`${baseUrl}/api/builds/public/${params.buildId}`, {
|
||||
const res = await fetch(`${baseUrl}/api/builds/public/${buildId}`, {
|
||||
cache: "no-store",
|
||||
});
|
||||
|
||||
@@ -359,7 +361,7 @@ export default async function BuildBreakdownPage({
|
||||
<div className="flex items-center justify-between">
|
||||
<span className="text-zinc-500">Build ID</span>
|
||||
<span className="text-zinc-300">
|
||||
{(build.uuid ?? params.buildId).slice(0, 8)}…
|
||||
{(build.uuid ?? buildId).slice(0, 8)}…
|
||||
</span>
|
||||
</div>
|
||||
<div className="flex items-center justify-between">
|
||||
|
||||
Reference in New Issue
Block a user