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.

combine into 1 env var

Steven Teye53f37341157
diff --git a/apps/web/.env.example b/apps/web/.env.example
index d38a37b130..2672a66715 100644
--- a/apps/web/.env.example
+++ b/apps/web/.env.example
@@ -55,7 +55,6 @@ STRIPE_WEBHOOK_SECRET=
# Stripe App
STRIPE_APP_INSTALL_URL=
-STRIPE_APP_CLIENT_ID=
STRIPE_APP_WEBHOOK_SECRET=
# Used for Google Login
diff --git a/apps/web/app/api/workspaces/[idOrSlug]/connect-stripe/route.ts b/apps/web/app/api/workspaces/[idOrSlug]/connect-stripe/route.ts
index 3e9fda2894..69900f35f2 100644
--- a/apps/web/app/api/workspaces/[idOrSlug]/connect-stripe/route.ts
+++ b/apps/web/app/api/workspaces/[idOrSlug]/connect-stripe/route.ts
@@ -7,8 +7,6 @@ import { NextResponse } from "next/server";
const envSchema = z.object({
STRIPE_APP_INSTALL_URL: z.string(),
- STRIPE_APP_CLIENT_ID: z.string(),
- STRIPE_APP_WEBHOOK_SECRET: z.string(),
});
export const POST = withWorkspace(async ({ workspace }) => {
@@ -22,14 +20,13 @@ export const POST = withWorkspace(async ({ workspace }) => {
if (!env.success) {
throw new DubApiError({
code: "bad_request",
- message: "Stripe environment variables are not configured properly.",
+ message: "Stripe App environment variables are not configured properly.",
});
}
- const { STRIPE_APP_INSTALL_URL, STRIPE_APP_CLIENT_ID } = env.data;
+ const { STRIPE_APP_INSTALL_URL } = env.data;
const url = new URL(STRIPE_APP_INSTALL_URL);
- url.searchParams.set("client_id", STRIPE_APP_CLIENT_ID);
url.searchParams.set(
"redirect_uri",
`${APP_DOMAIN_WITH_NGROK}/api/stripe/connect/callback`,