feat: implement PostgreSQL client for bulk data retrieval to replace per-article HTTP requests and configure Claude permissions

This commit is contained in:
Michael committed 2026-04-02 16:31:11 +02:00
1 parent 868886db87
commit 7e4b370267
6 files changed
+91 -19

No files matched your search

+2 -1
View File
@@ -33,7 +33,8 @@ export default async function GridPage({ searchParams }: GridPageProps) {
return <SupplierSelectionLanding fournisseurs={fournisseurs} />;
}
// 3. Load real product data for the selected supplier
// 3. Load product data — résultat mis en cache 5 min par fournisseur (unstable_cache).
// La première requête est lente mais les suivantes (refresh, navigation) sont instantanées.
console.log(`\n>>> [GridPage] Fetching data for: ${codeFournisseur}, shop: ${magasin}`);
const rows = await getGridData(codeFournisseur, magasin, filters);
console.log(`>>> [GridPage] Received ${rows.length} rows from getGridData`);