Skip to content

fix: revoke generated object URLs#259

Open
ifer47 wants to merge 1 commit into
VERT-sh:mainfrom
ifer47:fix/revoke-object-urls
Open

fix: revoke generated object URLs#259
ifer47 wants to merge 1 commit into
VERT-sh:mainfrom
ifer47:fix/revoke-object-urls

Conversation

@ifer47

@ifer47 ifer47 commented Jun 8, 2026

Copy link
Copy Markdown

Summary

  • revoke the temporary object URL used while generating image/video thumbnails
  • create the vertd error-message blob URL when the dialog mounts and revoke it when the dialog unmounts

Why

URL.createObjectURL() keeps the underlying Blob/File data alive until the URL is revoked. The previous thumbnail path created one object URL per uploaded media file without revoking it, and the vertd error details link created a blob URL directly during render. Repeated conversions or repeated error dialog opens could retain unnecessary browser memory.

Testing

  • bun run build with public env values from .env.example

Notes: bun run check currently fails on this clean checkout before reaching this change because generated Paraglide modules/env declarations and Node types are missing from the check setup. bun run lint also hits existing repository-wide Prettier/{@html} baseline issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant