Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

monograph: mark `sharp` as external in ssr build

Abdullah Atta48459efdb1d9
diff --git a/apps/monograph/vite.config.ts b/apps/monograph/vite.config.ts
index 68a9af3ce..9155f6aab 100644
--- a/apps/monograph/vite.config.ts
+++ b/apps/monograph/vite.config.ts
@@ -75,7 +75,7 @@ export default defineConfig(({ isSsrBuild }) => ({
}
},
ssr: {
- ...(process.env.NODE_ENV === "development" ? {} : { noExternal: true }),
+ ...(process.env.NODE_ENV === "development" ? {} : { noExternal: true, external: ["sharp"] }),
target: "node"
},
build: {