Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fix: use test mode stripe products also in staging

Marc Klingen73fe2dc1a789
diff --git a/web/src/ee/features/billing/utils/stripeProducts.ts b/web/src/ee/features/billing/utils/stripeProducts.ts
index 4041d98524..c256e0923f 100644
--- a/web/src/ee/features/billing/utils/stripeProducts.ts
+++ b/web/src/ee/features/billing/utils/stripeProducts.ts
@@ -16,7 +16,8 @@ type StripeProduct = {
export const stripeProducts: StripeProduct[] = [
{
stripeProductId:
- env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "DEV"
+ env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "DEV" ||
+ env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "STAGING"
? "prod_QgDNYKXcBfvUQ3" // test
: "prod_P47h5SDEr9vJZk", // live
mappedPlan: "cloud:pro",
@@ -29,7 +30,8 @@ export const stripeProducts: StripeProduct[] = [
},
{
stripeProductId:
- env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "DEV"
+ env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "DEV" ||
+ env.NEXT_PUBLIC_LANGFUSE_CLOUD_REGION === "STAGING"
? "prod_QgDOxTD64U6KDv" // test
: "prod_PAo9J9pxepZQVe", // live
mappedPlan: "cloud:team",