Skip to content

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

fix: try experimental features

Marc Seitzee1bb007d5b3
diff --git a/next.config.js b/next.config.js
index 54ec01b4..293eb728 100644
--- a/next.config.js
+++ b/next.config.js
@@ -12,6 +12,11 @@ const nextConfig = {
"localhost", // local img
],
},
+ experimental: {
+ outputFileTracingIncludes: {
+ "/api/**/*": ["./node_modules/**/*.wasm"],
+ },
+ },
};
module.exports = nextConfig
diff --git a/package.json b/package.json
index c922e543..289b448b 100644
--- a/package.json
+++ b/package.json
@@ -7,11 +7,11 @@
},
"scripts": {
"dev": "next dev",
- "build": "next build",
+ "build": "npm run copy:mupdf && next build",
"start": "next start",
"lint": "next lint",
"postinstall": "prisma generate",
- "vercel-build": "prisma migrate deploy && npm run copy:mupdf && next build",
+ "vercel-build": "prisma migrate deploy && next build",
"email": "email dev --dir ./components/emails --port 3001",
"copy:mupdf": "node ./scripts/copy-mupdf.cjs"
},