Commit d1c4e82
fix(core): remove DOMPurify from ProductReviewSchema to fix SSR crash
DOMPurify requires a browser DOM and throws during SSR. Since the input
is already `JSON.stringify()` output for a JSON-LD script tag, HTML
sanitization is unnecessary.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 5143081 commit d1c4e82
1 file changed
Lines changed: 1 addition & 3 deletions
File tree
- core/app/[locale]/(default)/product/[slug]/_components/product-review-schema
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
6 | 4 | | |
7 | 5 | | |
| |||
43 | 41 | | |
44 | 42 | | |
45 | 43 | | |
46 | | - | |
| 44 | + | |
47 | 45 | | |
48 | 46 | | |
49 | 47 | | |
| |||
0 commit comments