carte : mode forecast par défaut quand le moteur est injoignable au prerender
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 changed file +1 −1
modified
web/src/app/carte/page.tsx
+1 −1
@@ -8,7 +8,7 @@ export const revalidate = 60; | |||||
| 8 | 8 | ||||
| 9 | export default async function Page() { | 9 | export default async function Page() { | ||
| 10 | const meta = await apiSafe<Meta>("/api/meta"); | 10 | const meta = await apiSafe<Meta>("/api/meta"); | ||
| 11 | − const live = meta?.mode !== "forecast"; | 11 | + const live = meta ? meta.mode !== "forecast" : false; | ||
| 12 | return ( | 12 | return ( | ||
| 13 | <div className="space-y-6"> | 13 | <div className="space-y-6"> | ||
| 14 | <div> | 14 | <div> | ||
| 15 | 15 | ||||