The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
small fixes
Steven Teydcf9a9dfdde0
diff --git a/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/page.tsx b/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/page.tsxindex 0ce059204f..9be7e59d03 100644--- a/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/page.tsx+++ b/apps/web/app/app.dub.co/(deeplink)/deeplink/[domain]/[key]/page.tsx@@ -28,7 +28,7 @@ export default async function DeepLinkPreviewPage({}return (- <main className="flex h-dvh w-full flex-col bg-white">+ <main className="mx-auto flex h-dvh w-full max-w-md flex-col bg-white"><div className="absolute inset-0 isolate overflow-hidden bg-white"><divclassName={cn(diff --git a/apps/web/app/app.dub.co/(share)/share/[dashboardId]/action.ts b/apps/web/app/app.dub.co/(share)/share/[dashboardId]/action.tsindex 0a51dddeb7..777e06ea43 100644--- a/apps/web/app/app.dub.co/(share)/share/[dashboardId]/action.ts+++ b/apps/web/app/app.dub.co/(share)/share/[dashboardId]/action.ts@@ -1,13 +1,13 @@"use server";-import { prismaEdge } from "@dub/prisma/edge";+import { prisma } from "@dub/prisma";import { cookies } from "next/headers";export async function verifyPassword(_prevState: any, data: FormData) {const dashboardId = data.get("dashboardId") as string;const password = data.get("password") as string;- const dashboard = await prismaEdge.dashboard.findUnique({+ const dashboard = await prisma.dashboard.findUnique({where: { id: dashboardId },});diff --git a/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsx b/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsxindex 0924ffd40c..f3fb56013b 100644--- a/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsx+++ b/apps/web/app/app.dub.co/(share)/share/[dashboardId]/page.tsx@@ -9,8 +9,6 @@ import { notFound } from "next/navigation";import { Suspense } from "react";import DashboardPasswordForm from "./form";-export const dynamic = "force-dynamic";-export async function generateMetadata({params,}: {diff --git a/apps/web/lib/middleware/app.ts b/apps/web/lib/middleware/app.tsindex 489d826468..9cde570a50 100644--- a/apps/web/lib/middleware/app.ts+++ b/apps/web/lib/middleware/app.ts@@ -28,7 +28,8 @@ export default async function AppMiddleware(req: NextRequest) {path !== "/register" &&path !== "/auth/saml" &&!path.startsWith("/auth/reset-password/") &&- !path.startsWith("/share/")+ !path.startsWith("/share/") &&+ !path.startsWith("/deeplink/")) {return NextResponse.redirect(new URL(