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 app-router
Steven Teye97de392f5e8
diff --cc apps/web/app/protected/[domain]/[key]/action.tsindex 18d69e68e3,18571c8b8f..50fa304739--- a/apps/web/app/protected/[domain]/[key]/action.ts+++ b/apps/web/app/protected/[domain]/[key]/action.ts@@@ -1,5 -1,7 +1,7 @@@"use server";-import prisma from "#/lib/prisma";+import prisma from "@/lib/prisma";+ import { linkConstructor } from "@dub/utils";+ import { redirect } from "next/navigation";export async function verifyPassword(data: FormData) {const domain = data.get("domain") as string;diff --cc apps/web/app/protected/[domain]/[key]/form.tsxindex d4a9c49d4a,9b43325d44..9b3623d7c7--- a/apps/web/app/protected/[domain]/[key]/form.tsx+++ b/apps/web/app/protected/[domain]/[key]/form.tsx@@@ -1,8 -1,8 +1,8 @@@"use client";-import { AlertCircleFill } from "@/components/shared/icons";+import { AlertCircleFill } from "@/ui/shared/icons";import { Button } from "@dub/ui";- import { useParams, useRouter } from "next/navigation";+ import { useParams } from "next/navigation";import { useState } from "react";import { experimental_useFormStatus as useFormStatus } from "react-dom";import { toast } from "sonner";