Skip to content

Remove retired /stageProject and getProjectWebhook endpoints - #507

Merged
jhuleatt merged 1 commit into
masterfrom
fix/delete-stage-project
Nov 19, 2026
Merged

jhuleatt merged 1 commit into
masterfrom
fix/delete-stage-project

Conversation

@jhuleatt

Copy link
Copy Markdown
Contributor

Since firebaseopensource.com no longer stages new community repositories, this cleans up the retired staging and manual sync endpoints:

  • Remove the unused stageProject and getProjectWebhook functions from functions/src/index.ts.
  • Remove the /stageProject Hosting rewrite from firebase.json and the retired docs/stage-project.md entry from .opensource/project.json.
  • Update Makefile's build-hosting target to run shadcn:copy (-y) alongside nuxt generate.

- 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

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread Makefile
&& npm install \
&& npm run generate \
&& cd -
npm --prefix=frontend install

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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

Comment thread frontend/package.json
"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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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.

@jhuleatt
jhuleatt merged commit b2a0ed5 into master Nov 19, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant