docs: setup firebase hosting con github actions#3
Conversation
Review Summary by QodoConfigure GitHub Actions for Firebase Hosting deployment
WalkthroughsDescription• Configure GitHub Actions workflows for Firebase Hosting deployment • Add automatic deployment on merge to main branch • Add preview deployment on pull requests • Update Firebase project ID to finanz-services Diagramflowchart LR
A["GitHub Push to main"] -- "triggers" --> B["firebase-hosting-merge.yml"]
B -- "builds & deploys" --> C["Firebase Hosting Live"]
D["GitHub Pull Request"] -- "triggers" --> E["firebase-hosting-pull-request.yml"]
E -- "builds & previews" --> F["Firebase Hosting Preview"]
G[".firebaserc"] -- "updated project ID" --> H["finanz-services"]
File Changes1. .firebaserc
|
Code Review by Qodo
1. Deploys placeholder site
|
|
Visit the preview URL for this PR (updated for commit d905bd4): https://finanz-services--pr3-feat-github-workflow-3m2lwuak.web.app (expires Tue, 17 Mar 2026 18:47:58 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 4905a912ab243faab8eac1b38a9b8711115b94d9 |
| - run: npm ci && npm run build | ||
| - uses: FirebaseExtended/action-hosting-deploy@v0 | ||
| with: | ||
| repoToken: ${{ secrets.GITHUB_TOKEN }} | ||
| firebaseServiceAccount: ${{ secrets.FIREBASE_SERVICE_ACCOUNT_FINANZ_SERVICES }} | ||
| channelId: live | ||
| projectId: finanz-services |
There was a problem hiding this comment.
1. Deploys placeholder site 🐞 Bug ✓ Correctness
The new workflows run npm run build but Firebase Hosting is configured to serve the checked-in public/ directory, so the deployment can publish the default Firebase placeholder page instead of the app. This will make production deploys incorrect even though CI reports a successful build/deploy.
Agent Prompt
## Issue description
GitHub Actions runs `npm run build`, but Firebase Hosting is configured to serve `public/`, which currently contains the default Firebase Hosting placeholder page. This means deployments can publish the placeholder instead of the built app.
## Issue Context
- `firebase.json` serves `public/` and rewrites all routes to `/index.html`.
- `public/index.html` is the Firebase Hosting welcome page.
- Build script is `vite build` and there is no Vite config shown to emit output into `public/`.
## Fix Focus Areas
- firebase.json[1-16]
- package.json[6-16]
- vite.config.ts[1-30]
- .github/workflows/firebase-hosting-merge.yml[13-20]
- .github/workflows/firebase-hosting-pull-request.yml[15-21]
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Cambios realizados:
firebase-hosting-merge.ymlyfirebase-hosting-pull-request.yml.finanz-servicesde Firebase.Validación: