From 0f02b8609a001d9e47b14816ee84254aa6b30e5c Mon Sep 17 00:00:00 2001 From: Arthur DANJOU Date: Mon, 5 Jan 2026 16:35:00 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20mettre=20=C3=A0=20jour=20la=20logique=20?= =?UTF-8?q?de=20d=C3=A9termination=20de=20la=20cible=20de=20d=C3=A9ploieme?= =?UTF-8?q?nt=20et=20supprimer=20les=20messages=20de=20d=C3=A9bogage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cloudflare.yml | 11 ++--------- worker-configuration.d.ts | 5 +---- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/cloudflare.yml b/.github/workflows/cloudflare.yml index 437a691..5794dd4 100644 --- a/.github/workflows/cloudflare.yml +++ b/.github/workflows/cloudflare.yml @@ -48,23 +48,16 @@ jobs: - name: Determine Deployment Target id: target run: | - # J'utilise des quotes pour éviter les erreurs si la branche contient des espaces if [ "${{ github.ref_name }}" = "main" ] || [ "${{ github.ref_name }}" = "master" ]; then - echo "Current branch is Production: ${{ github.ref_name }}" + # Production : Aucun flag, on utilise la config racine par défaut echo "env_flag=" >> $GITHUB_OUTPUT echo "env_name=Production" >> $GITHUB_OUTPUT else - echo "Current branch is Preview: ${{ github.ref_name }}" + # Preview : On surcharge avec l'environnement preview echo "env_flag=--env preview" >> $GITHUB_OUTPUT echo "env_name=Preview" >> $GITHUB_OUTPUT fi - - name: 🔍 Debug Info - run: | - echo "Branche détectée : ${{ github.ref_name }}" - echo "Flag Wrangler calculé : '${{ steps.target.outputs.env_flag }}'" - echo "Nom Environnement : ${{ steps.target.outputs.env_name }}" - - name: Publish to Cloudflare Workers uses: cloudflare/wrangler-action@v3 with: diff --git a/worker-configuration.d.ts b/worker-configuration.d.ts index 26cc966..77af577 100644 --- a/worker-configuration.d.ts +++ b/worker-configuration.d.ts @@ -1,10 +1,7 @@ /* eslint-disable */ -// Generated by Wrangler by running `wrangler types` (hash: 8c48032b4b2801cdbac6e8dbc9d26203) +// Generated by Wrangler by running `wrangler types` (hash: 373e9a05bf207b93549ab53665d07e4b) // Runtime types generated with workerd@1.20251210.0 2025-12-13 nodejs_compat declare namespace Cloudflare { - interface GlobalProps { - mainModule: typeof import("./.output/server/index"); - } interface Env { CACHE: KVNamespace; STUDIO_GITHUB_CLIENT_ID: string;