The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Merge branch 'main' into staging-sandbox
Steven Tey270ddc120731
diff --cc apps/web/app/api/workspaces/[idOrSlug]/billing/payment-methods/route.tsindex efd92ae263,ac9033da7f..10f2598ca8--- a/apps/web/app/api/workspaces/[idOrSlug]/billing/payment-methods/route.ts+++ b/apps/web/app/api/workspaces/[idOrSlug]/billing/payment-methods/route.ts@@@ -22,12 -46,11 +49,15 @@@ async function getWorkspacePaymentMetho// GET /api/workspaces/[idOrSlug]/billing/payment-methods - get all payment methodsexport const GET = withWorkspace(async ({ workspace }) => {+ if (workspace.environment !== WorkspaceEnvironment.production) {+ return NextResponse.json([SANDBOX_PAYMENT_METHOD]);+ }+if (!workspace.stripeId) {- return NextResponse.json([]);+ return NextResponse.json({+ paymentMethods: [],+ defaultPaymentMethodId: null,+ });}try {diff --cc apps/web/app/app.dub.co/(auth)/invites/[code]/page.tsxindex 73b107a444,c0d2dfd9bd..f219db3442--- a/apps/web/app/app.dub.co/(auth)/invites/[code]/page.tsx+++ b/apps/web/app/app.dub.co/(auth)/invites/[code]/page.tsx@@@ -4,9 -4,7 +4,8 @@@ import { addMemberToStaging } from "@/limport EmptyState from "@/ui/shared/empty-state";import { LoadingSpinner } from "@dub/ui";import { LinkBroken, Users6 } from "@dub/ui/icons";- import { APP_NAME } from "@dub/utils";import { redirect } from "next/navigation";+import { after } from "next/server";import { Suspense } from "react";export default async function InvitesPage(props: {