fix: mettre à jour la date de compatibilité et supprimer les journaux de débogage dans la page d'état

This commit is contained in:
2026-03-11 10:45:24 +01:00
parent 266fc63482
commit 263081ea6b
4 changed files with 5 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import type { StatusPageData } from '~~/types' import type { StatusPageData } from '~~/types'
const { data, status, error } = await useAsyncData<StatusPageData>('home-status', () => const { data, status } = await useAsyncData<StatusPageData>('home-status', () =>
$fetch('/api/status-page'), $fetch('/api/status-page'),
{ lazy: true } { lazy: true }
) )
@@ -49,7 +49,7 @@ const statusState = computed(() => {
<template> <template>
<ClientOnly> <ClientOnly>
<UCard v-if="!error" class="h-full flex flex-col overflow-hidden"> <UCard v-if="data" class="h-full flex flex-col overflow-hidden">
<div class="p-5 border-b border-neutral-200 dark:border-neutral-800"> <div class="p-5 border-b border-neutral-200 dark:border-neutral-800">
<div class="flex items-center justify-between mb-2"> <div class="flex items-center justify-between mb-2">
<h3 class="font-bold text-neutral-900 dark:text-white text-sm"> <h3 class="font-bold text-neutral-900 dark:text-white text-sm">

View File

@@ -113,7 +113,7 @@ export default defineNuxtConfig({
experimental: { experimental: {
viewTransition: true viewTransition: true
}, },
compatibilityDate: '2025-12-13', compatibilityDate: '2026-02-24',
nitro: { nitro: {
preset: 'cloudflare_module', preset: 'cloudflare_module',

View File

@@ -1,6 +1,5 @@
export default defineCachedEventHandler(async (event) => { export default defineCachedEventHandler(async (event) => {
const { statusPage } = useRuntimeConfig(event) const { statusPage } = useRuntimeConfig(event)
console.log('Fetching status page data...', statusPage)
return await $fetch(statusPage) return await $fetch(statusPage)
}, { }, {
maxAge: 60, maxAge: 60,

View File

@@ -1,7 +1,7 @@
{ {
"$schema": "node_modules/wrangler/config-schema.json", "$schema": "node_modules/wrangler/config-schema.json",
"name": "artsite", "name": "artsite",
"compatibility_date": "2025-12-13", "compatibility_date": "2026-02-24",
"compatibility_flags": [ "compatibility_flags": [
"nodejs_compat" "nodejs_compat"
], ],
@@ -73,4 +73,4 @@
] ]
} }
} }
} }