Skip to content

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

wip

Marc Seitz8d150d709b78
diff --git a/components/PagesViewer.tsx b/components/PagesViewer.tsx
index 2d5d1f85..23815d96 100644
--- a/components/PagesViewer.tsx
+++ b/components/PagesViewer.tsx
@@ -116,7 +116,8 @@ export default function PagesViewer({pages, linkId, documentId, viewId}: {pages:
src={pages[pageNumber - 1].file}
alt={`Page ${pageNumber}`}
fill
- priority={pageNumber == 1}
+ priority={true}
+ quality={100}
/>
</div>
</div>
diff --git a/next.config.js b/next.config.js
index 6f99cd04..181bc7f5 100644
--- a/next.config.js
+++ b/next.config.js
@@ -21,20 +21,6 @@ const nextConfig = {
"/api/mupdf/*": ["./node_modules/mupdf/lib/*.wasm"],
},
},
- async headers() {
- return [
- {
- // Matching all image types from the Next.js image optimizer
- source: "/_next/image(.*)",
- headers: [
- {
- key: "Cache-Control",
- value: "max-age=0, s-maxage=86400",
- },
- ],
- },
- ];
- },
};
module.exports = nextConfig