Skip to content

Commit

Permalink
fix: 노션 이미지 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Tekiter committed Jan 28, 2024
1 parent 3d75b5a commit 4d44141
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/ssr-gateway/src/notion/api/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ export function createNotionUnofficialClient(_imageHandler: NotionImageHandler)
}

const source = block.properties?.source[0][0];
if (source.includes('/secure.notion-static.com/')) {

if (
source.includes('/secure.notion-static.com/') ||
source.includes('/prod-files-secure.s3.us-west-2.amazonaws.com/')
) {
return {
blockId: block.id,
query: {
Expand All @@ -83,6 +87,7 @@ export function createNotionUnofficialClient(_imageHandler: NotionImageHandler)
},
};
}

return [];
});

Expand Down

0 comments on commit 4d44141

Please sign in to comment.