Commit eabc1ed
Fix Vercel deploy: replace isomorphic-dompurify with sanitize-html
isomorphic-dompurify loads jsdom which depends on html-encoding-sniffer
-> @exodus/bytes (ESM-only). Vercel Serverless uses CJS require() so
this crashes all API routes with ERR_REQUIRE_ESM.
sanitize-html is pure Node.js with no DOM dependency.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 415aaf4 commit eabc1ed
3 files changed
Lines changed: 112 additions & 63 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | 64 | | |
66 | 65 | | |
67 | 66 | | |
| |||
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
99 | 100 | | |
100 | 101 | | |
101 | 102 | | |
| |||
0 commit comments