mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-03-16 03:09:44 +01:00
fix: supprimer le débogage de l'environnement et ajouter un journal pour la récupération des données de la page d'état
This commit is contained in:
7
.github/workflows/cloudflare.yml
vendored
7
.github/workflows/cloudflare.yml
vendored
@@ -34,13 +34,6 @@ jobs:
|
|||||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
|
|
||||||
- name: Debug env
|
|
||||||
run: |
|
|
||||||
echo "STATUS_PAGE defined: ${{ secrets.NUXT_STATUS_PAGE != '' }}"
|
|
||||||
echo "STATUS_PAGE length: ${#NUXT_STATUS_PAGE}"
|
|
||||||
env:
|
|
||||||
NUXT_STATUS_PAGE: ${{ secrets.NUXT_STATUS_PAGE }}
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: bun run build
|
run: bun run build
|
||||||
env:
|
env:
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
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,
|
||||||
|
|||||||
Reference in New Issue
Block a user