Commit Graph

17 Commits

Author SHA1 Message Date
cedric c4762c6437 perf: cache des données constitution avec unstable_cache (ISR data layer)
La page d'accueil appelle auth() (cookies → dynamique) donc export const revalidate
ne s'applique pas au rendu. On cache à la place les appels Directus :

- fetchConstitution() → wrappée avec nextCache (unstable_cache)
- revalidate: 300 (5 min) — la constitution évolue peu
- tag 'constitution' — permet revalidateTag('constitution') depuis une API route
  pour invalider le cache à la demande lors d'un changement Directus

Les appels API Directus (titres + articles) ne sont plus refaits à chaque requête.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 06:54:07 +04:00
cedric de81fbfe5c fix: change titres sorting 2026-01-22 11:38:30 +04:00
cedric 9e78a32d8d fix: error when no titre or article 2024-12-16 13:34:05 +04:00
cedric d23839b3e8 Improve Sign component 2024-09-15 18:05:26 +04:00
cedric accd3be56d Ensure displaying only published content 2024-07-02 11:04:24 +02:00
cedric a7eaaac447 Add 'articles' collection to create operation 2024-06-23 19:18:25 +04:00
cedric 06879763bc Create titres 2024-06-22 07:52:32 +04:00
cedric 157951b10e Upgrade to NextAuth v5 2024-06-18 11:10:30 +04:00
cedric a5c0eab06b Fix undefined sessions 2024-05-23 18:43:35 +04:00
cedric 50b25f7855 Add Create component and Comment button 2024-05-20 14:49:31 +04:00
cedric 482b930e52 Add Sign to index page 2024-05-20 04:19:44 +04:00
cedric d3ae60d40c Use aliases 2024-05-20 04:19:44 +04:00
cedric 2e916fed68 Include Footer and Konstitisyon components to page 2024-05-18 09:37:09 +04:00
cedric 8e3a627d12 Add APP_TITLE env variable 2024-05-17 09:00:25 +04:00
cedric cfa4ff6b0d Fetch Directus data 2024-05-17 08:29:06 +04:00
cedric 838a1a2f62 Add Roboto font 2024-05-16 19:38:20 +04:00
cedric b96b0c5972 first commit 2024-05-16 02:17:33 +04:00