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

This commit is contained in:
2025-11-10 11:52:53 -08:00
parent 43c34a5c3e
commit 95c50bfeff
2 changed files with 4 additions and 5 deletions

View File

@@ -73,11 +73,9 @@ jobs:
# --- Frontend Deployment ---
- name: Build React Application
# 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.
# We set the environment variable directly in the command line for this step.
# This is the most forceful and reliable way to ensure the variable is available to the build process.
run: VITE_API_KEY=${{ secrets.VITE_API_KEY }} npm run build
- name: Deploy Frontend via Local Copy
run: |

View File

@@ -19,5 +19,6 @@
<body>
<div id="root"></div>
<!-- Vite will inject the correct <script> tag here during the build process -->
<script type="module" src="/index.tsx"></script>
</body>
</html>