8000 Fix blank media-library admin page by kiran-brahma · Pull Request #11 · kiran-brahma/microfeed · GitHub
[go: up one dir, main page]

Skip to content

Fix blank media-library admin page - #11

Merged
kiran-brahma merged 1 commit into
mainfrom
fix/media-library-ssr
Aug 14, 2026
Merged

kiran-brahma merged 1 commit into
mainfrom
fix/media-library-ssr

Conversation

@kiran-brahma
Copy link
Copy Markdown
Owner

Fixes the blank white page at /admin/media-library/.

The MediaLibraryApp component accessed window.location.hostname at the top level of the component function, which fails during server-side rendering (the route uses client:load, which does SSR). The item editor avoids this by using client:.

Fix: compute publicBucketUrl on the server route and pass it to the component, removing the top-level window access.

Tests: 623 unit pass, typecheck clean.

@kiran-brahma
kiran-brahma marked this pull request as ready for review August 14, 2026 08:47
@kiran-brahma
83FB kiran-brahma merged commit e8396bf into main Aug 14, 2026
0 of 2 checks passed
@kiran-brahma
kiran-brahma deleted the fix/media-library-ssr branch August 14, 2026 08:47
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

0