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;