feat: add inline PDF viewer for Custom_PDF objects

Add a /pdf proxy route that forces Content-Disposition inline so PDFs render instead of downloading, and a web viewer that embeds the document in an iframe with a standalone open-in-new-tab link.
This commit is contained in:
2026-08-14 09:51:11 +08:00
parent 8bd186df54
commit dd08f901ae
8 changed files with 176 additions and 2 deletions
+1
View File
@@ -17,6 +17,7 @@ export default defineConfig({
'/items': 'http://localhost:3000',
'/health': 'http://localhost:3000',
'/asset': 'http://localhost:3000',
'/pdf': 'http://localhost:3000',
'/trace': 'http://localhost:3000',
},
},