# --- DevOps Launchpad ---

.PHONY: launchpad-dev deploy-launchpad-hosting

launchpad-dev:
	@echo "--> Starting local Launchpad server using Firebase Hosting emulator..."
	@echo "    - Generating secure email hashes..."
	@node scripts/generate-allowed-hashes.js
	@firebase serve --only hosting:launchpad --project=$(FIREBASE_ALIAS)

deploy-launchpad-hosting:
	@echo "--> Deploying Internal Launchpad to Firebase Hosting..."
	@echo "    - Generating secure email hashes..."
	@node scripts/generate-allowed-hashes.js
	@echo "    - Target: hosting:launchpad"
	@echo "    - Project: $(FIREBASE_ALIAS)"
	@firebase deploy --only hosting:launchpad --project=$(FIREBASE_ALIAS)
	@echo "--> ✅ Deployment to Firebase Hosting successful."
