Skip to content

Commit

Permalink
monograph: mark sharp as external in ssr build
Browse files Browse the repository at this point in the history
  • Loading branch information
thecodrr committed Nov 23, 2024
1 parent c848f3c commit 48459ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/monograph/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 48459ef

Please sign in to comment.