From 6f563640ac7a6a706ae15bb42706d8c98bd93697 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Fri, 7 Aug 2026 22:12:09 +0200 Subject: [PATCH] fix: remove as const from svgSanitizeOptions to fix DOMPurify type compat --- .cursor/goal/scratchpad.md | 2 +- apps/nextjs/src/app/api/user-medias/svg-purify.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.cursor/goal/scratchpad.md b/.cursor/goal/scratchpad.md index 468cb6535..dca64bc10 100644 --- a/.cursor/goal/scratchpad.md +++ b/.cursor/goal/scratchpad.md @@ -1,5 +1,5 @@ --- -iteration: 1 +iteration: 2 max_iterations: 30 status: active goal: "Review, fix, benchmark, and verify every package in Phase 1 performance branch until perfect" diff --git a/apps/nextjs/src/app/api/user-medias/svg-purify.ts b/apps/nextjs/src/app/api/user-medias/svg-purify.ts index 3e2699d75..629665826 100644 --- a/apps/nextjs/src/app/api/user-medias/svg-purify.ts +++ b/apps/nextjs/src/app/api/user-medias/svg-purify.ts @@ -4,7 +4,7 @@ import { parseHTML } from "linkedom"; const svgSanitizeOptions = { USE_PROFILES: { svg: true, svgFilters: true }, FORBID_TAGS: ["style"], -} as const; +}; const LINKEDOM_NODE_PROPS = [ "ownerDocument",