There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
fix(core): blob key issue for cloud blob provider (#4907)
Peng Xiaoadd20ec2f841
diff --git a/packages/frontend/workspace/src/blob/cloud-blob-storage.ts b/packages/frontend/workspace/src/blob/cloud-blob-storage.tsindex 7a8ca39549..ebefff7d86 100644--- a/packages/frontend/workspace/src/blob/cloud-blob-storage.ts+++ b/packages/frontend/workspace/src/blob/cloud-blob-storage.ts@@ -15,7 +15,9 @@ export const createCloudBlobStorage = (workspaceId: string): BlobStorage => {return {crud: {get: async key => {- const suffix = predefinedStaticFiles.includes(key)+ const suffix = key.startsWith('/')+ ? key+ : predefinedStaticFiles.includes(key)? `/static/${key}`: `/api/workspaces/${workspaceId}/blobs/${key}`;