diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index d9226881..0cbaf2ae 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -22,9 +22,6 @@ jobs: SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }} # The project ID for linking the Supabase CLI. SUPABASE_PROJECT_ID: ${{ secrets.SUPABASE_PROJECT_ID }} - # The Google GenAI API key, prefixed for Vite. - # By defining it here, it's available to all steps in the job. - VITE_API_KEY: ${{ secrets.VITE_API_KEY }} steps: - name: Checkout Code @@ -67,13 +64,20 @@ jobs: # Debug step: Verify environment variables are present before build - name: Debug Environment Variables - # This will now correctly check the job-level environment variable. + # Explicitly pass the secret to this step for debugging. + # This will confirm if the secret is accessible at all. + env: + VITE_API_KEY: ${{ secrets.VITE_API_KEY }} run: | echo "VITE_API_KEY is set: ${{ env.VITE_API_KEY != '' }}" # --- Frontend Deployment --- - name: Build React Application - run: npm run build # This creates the 'dist' directory. Vite will automatically pick up VITE_API_KEY from the job environment. + # Explicitly pass the secret to the build step. This is the most reliable way + # to ensure the build process has access to it. + env: + VITE_API_KEY: ${{ secrets.VITE_API_KEY }} + run: npm run build # This creates the 'dist' directory. - name: Deploy Frontend via Local Copy run: | diff --git a/tailwind.config.js b/tailwind.config.js index edb3eb22..d25373a3 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -3,7 +3,7 @@ export default { // Configure files to scan for Tailwind classes content: [ "./index.html", - "./src/**/*.{js,ts,jsx,tsx}", // Scans only files in the 'src' directory + "./*.{js,ts,jsx,tsx}", // Scans for files in the root directory ], // Enable dark mode using a class darkMode: 'class',