mirror of
https://github.com/hanzoai/agency.git
synced 2026-11-02 17:05:09 +00:00
mirror/batcha/agency-checkout-bff
- Delete the agency price map: pricing lived in TWO places (browser + BFF) and commerce silently IGNORED the raw amount, so a $9,999 plan minted at the $50 empty-hat fallback. BFF now sends a catalog REFERENCE (productSlug) and commerce prices from the org's own stored listing — one authority. - offeredPlans is membership only (no prices) so an unknown plan still 400s without duplicating or contradicting the catalog. - clientIP: trust only ingress-set hops. Prefer X-Real-IP; fall back to the RIGHTMOST X-Forwarded-For entry (appended by our proxy), never the client-spoofable leftmost — a forged leftmost could evade the mint limiter. - Tests updated to assert the catalog-reference contract + clientIP trust.
Hanzo Agency
Project info
AI-Powered Solutions - The human edge for AI. We build tomorrow's solutions with today's teams.
How can I edit this code?
There are several ways of editing your application.
Use your preferred IDE
Clone this repo and push changes using your own IDE.
The only requirement is having Node.js & npm installed - install with nvm
Follow these steps:
# Step 1: Clone the repository using the project's Git URL.
git clone <YOUR_GIT_URL>
# Step 2: Navigate to the project directory.
cd <YOUR_PROJECT_NAME>
# Step 3: Install the necessary dependencies.
npm i
# Step 4: Start the development server with auto-reloading and an instant preview.
npm run dev
Edit a file directly in GitHub
- Navigate to the desired file(s).
- Click the "Edit" button (pencil icon) at the top right of the file view.
- Make your changes and commit the changes.
Use GitHub Codespaces
- Navigate to the main page of your repository.
- Click on the "Code" button (green button) near the top right.
- Select the "Codespaces" tab.
- Click on "New codespace" to launch a new Codespace environment.
- Edit files directly within the Codespace and commit and push your changes once you're done.
What technologies are used for this project?
This project is built with .
- Vite
- TypeScript
- React
- shadcn-ui
- Tailwind CSS
How can I deploy this project?
Deploy using your preferred hosting service (Netlify, Vercel, etc.).
I want to use a custom domain - is that possible?
For custom domain deployment, we recommend using Netlify or similar services.
Languages
TypeScript
91.2%
CSS
5.3%
HTML
3.1%
JavaScript
0.2%
Dockerfile
0.2%