Repository navigation
Remove retired /stageProject and getProjectWebhook endpoints - #507
Conversation
- Delete unused stageProject and getProjectWebhook Cloud Functions from functions/src/index.ts - Remove /stageProject Hosting rewrite from firebase.json - Remove obsolete docs/stage-project.md and its .opensource/project.json entry - Ensure make build-hosting runs non-interactive shadcn:copy alongside nuxt generate
There was a problem hiding this comment.
Code Review
This pull request removes the project staging functionality, including the stageProject and getProjectWebhook Cloud Functions, their rewrite rules in firebase.json, and the staging documentation. Additionally, the Makefile is updated to use --prefix for frontend build commands and copy shadcn components. Feedback recommends using npm ci instead of npm install in the Makefile for more reliable builds, and adding @firebase-oss/ui-shadcn to devDependencies in frontend/package.json to prevent downloading the package on every npx execution.
| && npm install \ | ||
| && npm run generate \ | ||
| && cd - | ||
| npm --prefix=frontend install |
There was a problem hiding this comment.
In automated build pipelines and deployment scripts, it is highly recommended to use npm ci (clean install) instead of npm install. npm ci is faster, more reliable, and ensures that the exact dependency versions from package-lock.json are installed without unexpectedly updating the lockfile or introducing non-deterministic build results.
npm --prefix=frontend ci
| "deploy": "npm run generate && npx -y firebase-tools --project=default deploy", | ||
| "deploy:hosting": "npx -y firebase-tools --project=default deploy --only hosting", | ||
| "shadcn:copy": "npx @firebase-oss/ui-shadcn copy --outDir=.output/public/r" | ||
| "shadcn:copy": "npx -y @firebase-oss/ui-shadcn copy --outDir=.output/public/r" |
There was a problem hiding this comment.
Using npx with a package (@firebase-oss/ui-shadcn) that is not listed in devDependencies forces npx to download the package from the npm registry on every execution. This introduces a network dependency, slows down the build process, and can cause build failures if the registry is slow or offline. Consider adding @firebase-oss/ui-shadcn to your devDependencies so it is installed locally during npm install and run instantly.
Since
firebaseopensource.comno longer stages new community repositories, this cleans up the retired staging and manual sync endpoints:stageProjectandgetProjectWebhookfunctions fromfunctions/src/index.ts./stageProjectHosting rewrite fromfirebase.jsonand the retireddocs/stage-project.mdentry from.opensource/project.json.Makefile'sbuild-hostingtarget to runshadcn:copy(-y) alongsidenuxt generate.