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:35:29 -08:00
parent bdddca1417
commit 77dfec34b6
2 changed files with 6 additions and 6 deletions

View File

@@ -22,6 +22,9 @@ 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
@@ -64,16 +67,13 @@ jobs:
# Debug step: Verify environment variables are present before build
- name: Debug Environment Variables
# This will now correctly check the job-level environment variable.
run: |
echo "VITE_API_KEY is set: ${{ env.VITE_API_KEY != '' }}"
# --- Frontend Deployment ---
- name: Build React Application
env:
# Pass the Google GenAI API key to the build process.
# Vite automatically makes env vars prefixed with VITE_ available in the app. The app expects VITE_API_KEY.
VITE_API_KEY: ${{ secrets.VITE_API_KEY }}
run: npm run build # This creates the 'dist' directory with static files.
run: npm run build # This creates the 'dist' directory. Vite will automatically pick up VITE_API_KEY from the job environment.
- name: Deploy Frontend via Local Copy
run: |