File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff 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
2728module . exports = nextConfig ;
Original file line number Diff line number Diff line change @@ -3,22 +3,16 @@ import { notFound } from "next/navigation";
33import ProjectPage from "@/components/project-page" ;
44import { projects } from "@/components/projects" ;
55
6- // ① Generamos estáticamente todas las rutas /proyectos/<id>
76export 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
1410export 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}
You can’t perform that action at this time.
0 commit comments