Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

return with stripe instance as it was

Pedro Ladeira6dbf7b19da46
diff --git a/apps/web/lib/analytics/types.ts b/apps/web/lib/analytics/types.ts
index 8549503248..008e097026 100644
--- a/apps/web/lib/analytics/types.ts
+++ b/apps/web/lib/analytics/types.ts
@@ -49,9 +49,9 @@ export type AnalyticsFilters = Override<
end?: Date | null;
// TODO: Fix the schema so that we can avoid the override here
- // device?: string | undefined;
- // browser?: string | undefined;
- // os?: string | undefined;
+ device?: string | undefined;
+ browser?: string | undefined;
+ os?: string | undefined;
}
>;
diff --git a/apps/web/lib/stripe/index.ts b/apps/web/lib/stripe/index.ts
index 6b756e8ffc..9e01e9a52a 100644
--- a/apps/web/lib/stripe/index.ts
+++ b/apps/web/lib/stripe/index.ts
@@ -1,15 +1,13 @@
import Stripe from "stripe";
import { StripeMode } from "../types";
-export const stripe = process.env.STRIPE_SECRET_KEY
- ? new Stripe(process.env.STRIPE_SECRET_KEY, {
- apiVersion: "2025-05-28.basil",
- appInfo: {
- name: "Dub.co",
- version: "0.1.0",
- },
- })
- : null;
+export const stripe = new Stripe(`${process.env.STRIPE_SECRET_KEY}`, {
+ apiVersion: "2025-05-28.basil",
+ appInfo: {
+ name: "Dub.co",
+ version: "0.1.0",
+ },
+});
const secretMap: Record<StripeMode, string | undefined> = {
live: process.env.STRIPE_APP_SECRET_KEY,