Files
worldmonitor/api/_product-fallback-prices.js
Elie Habib 5b2cc93560 fix(catalog): update prices to match Dodo catalog via API (#2678)
* fix(catalog): update API Starter fallback prices to match Dodo

API Starter Monthly: $59.99 → $99.99
API Starter Annual: $490 → $999

* fix(catalog): log and expose priceSource (dodo/partial/fallback)

Console warns when fallback prices are used for individual products.
Response includes priceSource field: 'dodo' (all from API), 'partial'
(some failed), or 'fallback' (all failed). Makes silent failures
visible in Vercel logs and API response.

* fix(catalog): priceSource counts only public priced products, remove playground

priceSource was counting all CATALOG entries (including hidden
api_business and enterprise with no Dodo price), making it report
'partial' even when all visible prices came from Dodo.
Now counts only products rendered by buildTiers.
Removed playground-pricing.html from git.
2026-04-04 15:05:00 +04:00

12 lines
492 B
JavaScript

// AUTO-GENERATED from convex/config/productCatalog.ts
// Do not edit manually. Run: npx tsx scripts/generate-product-config.mjs
// @ts-check
/** Fallback prices (cents) when Dodo API is unreachable for individual products. */
export const FALLBACK_PRICES = {
'pdt_0Nbtt71uObulf7fGXhQup': 3999, // Pro Monthly
'pdt_0NbttMIfjLWC10jHQWYgJ': 39999, // Pro Annual
'pdt_0NbttVmG1SERrxhygbbUq': 9999, // API Starter Monthly
'pdt_0Nbu2lawHYE3dv2THgSEV': 99900, // API Starter Annual
};