Skip to content

Commit 8592f6d

Browse files
committed
Fix PDF mobile compatibility and resolve build script conflict
1 parent dcd275c commit 8592f6d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"private": true,
55
"scripts": {
66
"dev": "next dev",
7-
"build": "next build --webpack",
7+
"build": "next build",
88
"start": "next start",
99
"lint": "eslint"
1010
},

src/components/public/FilePreviewModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ export default function FilePreviewModal({ file, onClose }: FilePreviewModalProp
281281

282282
{isPdf && (
283283
<iframe
284-
src={file.fileUrl}
284+
src={`https://docs.google.com/viewer?url=${encodeURIComponent(file.fileUrl)}&embedded=true`}
285285
style={{
286286
width: "100%",
287287
height: "100%",

0 commit comments

Comments
 (0)