Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions front/src/app/embalse-cuenca/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { Metadata } from "next";
export const metadata: Metadata = {
title: "Embalses por cuencas",
};

export const revalidate = 300; // ISR: regenerar cada 5 minutos
export default async function EmbalsesCuencasPage() {
const cuencasAPI = await getRiverBasins();
const cuencaList = mapLookupListFromApiToViewModel(cuencasAPI);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ export async function getRiverBasins(): Promise<LookupApi[]> {
"Error:",
error instanceof Error ? error.message : error,
);
return [];
}
}