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.

fix the build

Kiran K7d381320738a
diff --git a/apps/web/app/api/tokens/route.ts b/apps/web/app/api/tokens/route.ts
index ac32b070df..cb628eef54 100644
--- a/apps/web/app/api/tokens/route.ts
+++ b/apps/web/app/api/tokens/route.ts
@@ -53,7 +53,7 @@ export const POST = withWorkspace(
await parseRequestBody(req),
);
- let machineUser: User | null = null;
+ let machineUser: Pick<User, "id"> | null = null;
const { role } = await prisma.projectUsers.findUniqueOrThrow({
where: {
@@ -90,6 +90,9 @@ export const POST = withWorkspace(
name: `${randomName} (Machine User)`,
isMachine: true,
},
+ select: {
+ id: true,
+ },
});
// Add machine user to workspace
diff --git a/apps/web/app/app.dub.co/(dashboard)/settings/security/page.tsx b/apps/web/app/app.dub.co/(dashboard)/settings/security/page.tsx
index b10bf12d50..f685fc60a5 100644
--- a/apps/web/app/app.dub.co/(dashboard)/settings/security/page.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/settings/security/page.tsx
@@ -3,7 +3,8 @@ import { prisma } from "@/lib/prisma";
import { RequestSetPassword } from "./request-set-password";
import { UpdatePassword } from "./update-password";
-export const dynamic = "auto";
+export const runtime = "nodejs";
+export const dynamic = "force-dynamic";
export default async function SecurityPage() {
const user = await getUser();
diff --git a/apps/web/emails/index.ts b/apps/web/emails/index.ts
index f888e3c917..19f0def350 100644
--- a/apps/web/emails/index.ts
+++ b/apps/web/emails/index.ts
@@ -23,8 +23,6 @@ export const sendEmail = async ({
react?: ReactElement<any, string | JSXElementConstructor<any>>;
marketing?: boolean;
}) => {
- return true;
-
if (process.env.NODE_ENV === "development" && !client) {
// Set up a fake email client for development
console.info(