Skip to content

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

@vercel
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

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.

3 participants