Skip to content

Commit 0bc8937

Browse files
committed
deploy
1 parent 91e0eed commit 0bc8937

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

next.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const nextConfig = {
2222
//swcMinify: true,
2323

2424
// Nota: hemos eliminado `output: 'export'` para poder usar i18n
25+
output: 'standalone'
2526
};
2627

2728
module.exports = nextConfig;

src/app/proyectos/[id]/page.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,16 @@ import { notFound } from "next/navigation";
33
import ProjectPage from "@/components/project-page";
44
import { projects } from "@/components/projects";
55

6-
// ① Generamos estáticamente todas las rutas /proyectos/<id>
76
export function generateStaticParams() {
8-
return projects.map((project) => ({
9-
id: project.id,
10-
}));
7+
return projects.map((p) => ({ id: p.id }));
118
}
129

13-
// ② Página para cada proyecto
1410
export default function ProjectRoute({
1511
params,
1612
}: {
1713
params: { id: string };
1814
}) {
1915
const project = projects.find((p) => p.id === params.id);
20-
if (!project) {
21-
return notFound();
22-
}
16+
if (!project) return notFound();
2317
return <ProjectPage project={project} />;
2418
}

0 commit comments

Comments
 (0)