post-deploy fixins
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 21s
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 21s
This commit is contained in:
@@ -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: |
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user