Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: change to dot com

Marc Seitz756b770e5f91
diff --git a/ee/features/dataroom-invitations/components/invite-viewers-modal.tsx b/ee/features/dataroom-invitations/components/invite-viewers-modal.tsx
index 27ccee22..62fcf7b3 100644
--- a/ee/features/dataroom-invitations/components/invite-viewers-modal.tsx
+++ b/ee/features/dataroom-invitations/components/invite-viewers-modal.tsx
@@ -422,8 +422,8 @@ export function InviteViewersModal({
<br />
<span className="break-all text-foreground">
{selectedLink
- ? `https://papermark.io/view/${selectedLink.slug ?? selectedLink.id}`
- : "https://papermark.io/view/..."}
+ ? `https://papermark.com/view/${selectedLink.slug ?? selectedLink.id}`
+ : "https://papermark.com/view/..."}
</span>
</p>
<Separator className="my-2" />
diff --git a/ee/features/workflows/components/step-form-dialog.tsx b/ee/features/workflows/components/step-form-dialog.tsx
index dcf18270..91094f71 100644
--- a/ee/features/workflows/components/step-form-dialog.tsx
+++ b/ee/features/workflows/components/step-form-dialog.tsx
@@ -1,4 +1,4 @@
-import { useState, useEffect } from "react";
+import { useEffect, useState } from "react";
import { toast } from "sonner";
import { z } from "zod";
@@ -327,7 +327,7 @@ export function StepFormDialog({
)}
{!link.domainSlug && link.slug && (
<span className="font-mono text-xs text-muted-foreground">
- papermark.io/{link.slug}
+ papermark.com/{link.slug}
</span>
)}
<span className="font-mono text-xs text-muted-foreground">
diff --git a/ee/features/workflows/components/workflow-list.tsx b/ee/features/workflows/components/workflow-list.tsx
index 1791534d..e144fbde 100644
--- a/ee/features/workflows/components/workflow-list.tsx
+++ b/ee/features/workflows/components/workflow-list.tsx
@@ -1,7 +1,9 @@
import Link from "next/link";
-import { Badge } from "@/components/ui/badge";
+
import { timeAgo } from "@/lib/utils";
+import { Badge } from "@/components/ui/badge";
+
interface Workflow {
id: string;
name: string;
@@ -28,7 +30,7 @@ export function WorkflowList({ workflows }: WorkflowListProps) {
if (workflow.entryLink.domainSlug && workflow.entryLink.slug) {
return `https://${workflow.entryLink.domainSlug}/${workflow.entryLink.slug}`;
}
- return `${process.env.NEXT_PUBLIC_MARKETING_URL || "https://www.papermark.io"}/view/${workflow.entryLink.id}`;
+ return `${process.env.NEXT_PUBLIC_MARKETING_URL || "https://www.papermark.com"}/view/${workflow.entryLink.id}`;
};
return (
@@ -72,4 +74,3 @@ export function WorkflowList({ workflows }: WorkflowListProps) {
</div>
);
}
-
diff --git a/ee/features/workflows/pages/workflow-detail.tsx b/ee/features/workflows/pages/workflow-detail.tsx
index f66ca4dd..72b2df3e 100644
--- a/ee/features/workflows/pages/workflow-detail.tsx
+++ b/ee/features/workflows/pages/workflow-detail.tsx
@@ -1,11 +1,11 @@
import { useRouter } from "next/router";
import { useState } from "react";
-import { z } from "zod";
import { useTeam } from "@/context/team-context";
import { toast } from "sonner";
import useSWR from "swr";
+import { z } from "zod";
import { fetcher } from "@/lib/utils";
@@ -87,7 +87,9 @@ export default function WorkflowDetailPage() {
error,
mutate,
} = useSWR<Workflow>(
- validWorkflowId && validTeamId ? `/api/workflows/${validWorkflowId}?teamId=${validTeamId}` : null,
+ validWorkflowId && validTeamId
+ ? `/api/workflows/${validWorkflowId}?teamId=${validTeamId}`
+ : null,
fetcher,
);
@@ -101,7 +103,7 @@ export default function WorkflowDetailPage() {
if (workflow.entryLink.domainSlug && workflow.entryLink.slug) {
return `https://${workflow.entryLink.domainSlug}/${workflow.entryLink.slug}`;
}
- return `${process.env.NEXT_PUBLIC_MARKETING_URL || "https://www.papermark.io"}/view/${workflow.entryLink.id}`;
+ return `${process.env.NEXT_PUBLIC_MARKETING_URL || "https://www.papermark.com"}/view/${workflow.entryLink.id}`;
};
const handleDeleteStep = async (stepId: string) => {
@@ -110,7 +112,11 @@ export default function WorkflowDetailPage() {
const stepIdValidation = z.string().cuid().safeParse(stepId);
const teamIdValidation = z.string().cuid().safeParse(teamId);
- if (!workflowIdValidation.success || !stepIdValidation.success || !teamIdValidation.success) {
+ if (
+ !workflowIdValidation.success ||
+ !stepIdValidation.success ||
+ !teamIdValidation.success
+ ) {
toast.error("Invalid workflow, step, or team ID");
return;
}
diff --git a/lib/resend.ts b/lib/resend.ts
index a69887fb..ae37b78f 100644
--- a/lib/resend.ts
+++ b/lib/resend.ts
@@ -55,7 +55,7 @@ export const sendEmail = async ({
? "Papermark <[email protected]>"
: !!scheduledAt
? "Marc Seitz <[email protected]>"
- : "Marc from Papermark <[email protected]>");
+ : "Marc from Papermark <[email protected]>");
try {
const { data, error } = await resend.emails.send({
diff --git a/lib/year-in-review/send-emails.ts b/lib/year-in-review/send-emails.ts
index f65419c3..aad335ab 100644
--- a/lib/year-in-review/send-emails.ts
+++ b/lib/year-in-review/send-emails.ts
@@ -1,13 +1,13 @@
import { render } from "@react-email/components";
import { nanoid } from "nanoid";
-import YearInReviewEmail from "@/components/emails/year-in-review-papermark";
-
import prisma from "@/lib/prisma";
import { resend } from "@/lib/resend";
import { log } from "@/lib/utils";
import { generateUnsubscribeUrl } from "@/lib/utils/unsubscribe";
+import YearInReviewEmail from "@/components/emails/year-in-review-papermark";
+
const BATCH_SIZE = 100; // Maximum number of emails Resend supports in one batch
const MAX_ATTEMPTS = 3;
const RATE_LIMIT_DELAY = 10000; // 10 seconds
@@ -145,7 +145,7 @@ export async function processEmailQueue() {
return {
email: {
- from: "Papermark <[email protected]>",
+ from: "Papermark <[email protected]>",
to: userTeam.user.email || "[email protected]",
subject: "2024 in Review: Your Year with Papermark",
react,
diff --git a/middleware.ts b/middleware.ts
index ca4f5b74..0234ff06 100644
--- a/middleware.ts
+++ b/middleware.ts
@@ -65,7 +65,7 @@ export default async function middleware(req: NextRequest, ev: NextFetchEvent) {
return DomainMiddleware(req);
}
- // Handle standard papermark.io paths
+ // Handle standard papermark.com paths
if (
!path.startsWith("/view/") &&
!path.startsWith("/verify") &&