Skip to content

Refactor/file blocks resolve url #760

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
May 24, 2024
Merged

Conversation

YousefED
Copy link
Collaborator

@YousefED YousefED commented May 23, 2024

This PR makes it possible to register a resolveFileUrl function that resolves custom urls (with user defined schemas) to a browser-accessible url.

This makes it possible for example to return s3://bucket/name from uploadFile which is stored in the block, and resolve this s3 identifier to an "accessible" (in this case, signed url) on use (i.e.: when rendering a block)

[x] The main TODO in this PR is that all usage of props.url needs to be checked and piped through resolveUrl
[x] There are also some TODOs in the code

Copy link

vercel bot commented May 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote ✅ Ready (Inspect) Visit Preview May 24, 2024 0:15am
blocknote-website ✅ Ready (Inspect) Visit Preview May 24, 2024 0:15am

@matthewlipski matthewlipski merged commit 7d3e9cf into main May 24, 2024
4 checks passed
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.

2 participants