Skip to content

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

remove logging

Marc Seitz88ebc5b75c90
diff --git a/pages/api/documents.ts b/pages/api/documents.ts
index 70986f21..a91312f2 100644
--- a/pages/api/documents.ts
+++ b/pages/api/documents.ts
@@ -23,9 +23,6 @@ export default async function handle(
// Assuming data is an object with `name` and `description` properties
const { name, url, description } = req.body;
- console.log("name", name);
- console.log("url", url);
-
// You could perform some validation here
try {
@@ -46,8 +43,6 @@ export default async function handle(
},
});
- console.log("link", link);
-
res.status(201).json({ document, linkId: link.id });
} catch (error) {
res.status(500).json({
diff --git a/pages/documents.tsx b/pages/documents.tsx
index 8d0008a6..6bccb084 100644
--- a/pages/documents.tsx
+++ b/pages/documents.tsx
@@ -55,8 +55,6 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
const totalPages = Math.ceil(totalDocuments / pageSize);
- console.log("documents: ", documents);
-
const serializedDocuments = documents.map((document) => ({
...document,
createdAt: document.createdAt.toISOString(),
diff --git a/pages/documents/[id].tsx b/pages/documents/[id].tsx
index a5eb717d..88981729 100644
--- a/pages/documents/[id].tsx
+++ b/pages/documents/[id].tsx
@@ -356,8 +356,6 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
_count: { id: true },
});
- console.log("links", links);
-
const serializedDocument = {
...document,
createdAt: document.createdAt.toISOString(),
diff --git a/pages/documents/new.tsx b/pages/documents/new.tsx
index 821dc77d..76462f79 100644
--- a/pages/documents/new.tsx
+++ b/pages/documents/new.tsx
@@ -38,8 +38,6 @@ export default function Form() {
// get the blob url from the response
const blob = (await blobResponse.json()) as PutBlobResult;
- console.log("Blob uploaded successfully!", blob);
-
// create a document in the database with the blob url
const response = await fetch("/api/documents", {
method: "POST",
@@ -59,8 +57,6 @@ export default function Form() {
const { document, linkId } = await response.json();
- console.log("Document created successfully!", document);
-
navigator.clipboard.writeText(
`${process.env.NEXT_PUBLIC_BASE_URL}/view/${linkId}`
);