Skip to content

Commit 57ece6f

Browse files
committed
fixed build errors with DOMPurify
* refactored usage of isomorphic-dompurify into getStaticProps context * updated some dependency management * updated next.config.js to contain webpack config for DOMPurify dependencies in server-side rendering
1 parent 65f8c71 commit 57ece6f

File tree

5 files changed

+10172
-10256
lines changed

5 files changed

+10172
-10256
lines changed

next.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ module.exports = {
77
domains: ['www.netlify.com'],
88
},
99
target: 'serverless',
10+
webpack: (config) => {
11+
config.externals = [...config.externals, "canvas", "jsdom"];
12+
return config;
13+
},
1014
};

0 commit comments

Comments
 (0)