post-deploy fixins
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 19s

This commit is contained in:
2025-11-10 11:41:50 -08:00
parent 77dfec34b6
commit 935f03fa24
2 changed files with 10 additions and 6 deletions

View File

@@ -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: |